J
JB
I'm returning a string from an xml file and trying to do something
like the following.
<Getter>
return HtmlEncode(s_tring.Value.Replace("\n","<br>"));
</Getter>
to replace a new-line character with a html line break.
But the "<BR>" is giving me errors as indicated in the title.
presumable it is parsing the string and thinking <br> is the start of
a new field in the xml file.
How can I go about reformatting it to let it through?
<?xml version="1.0" encoding="utf-8" ?> - if that effects things at
all. xml isnt my expertise
like the following.
<Getter>
return HtmlEncode(s_tring.Value.Replace("\n","<br>"));
</Getter>
to replace a new-line character with a html line break.
But the "<BR>" is giving me errors as indicated in the title.
presumable it is parsing the string and thinking <br> is the start of
a new field in the xml file.
How can I go about reformatting it to let it through?
<?xml version="1.0" encoding="utf-8" ?> - if that effects things at
all. xml isnt my expertise