c# - AppSettings string new lines not recognised after numbers -


i have following email signature stored in appsettings:

<add key="emailsignature"            value="&#13;&#10;&#13;&#10;smokey bear&#13;&#10;forest manager&#13;&#10;level 7 tree house&#13;&#10;jellystone park&#13;&#10;ddi 04 548 6457 • m 021 456 7854 • f 04 548 456" /> 

the problem comes out in email looking like:

smokey bear forest manager level 7 tree housejellystone parkddi 04 548 6457 • m 021 456 7854 • f 04 548 456

after experimentation i've found it's caused numbers. 7 in "level 7" causing jellystone park on same line. likewise other numbers cause further problem if there further lines.

anyone know how fix this? need escape character?

edit:

so i've found if use &#55; in place of 7 fixes problem caused 7. isn't desirable because makes data hard read , edit.

a better solution might have sort of identifying key in appsettings, , having static string in code can use set email signature.

i imagine if want set email signature in appsettings might want change based on level?


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -