K
Keith Patrick
I have some data coming in from a DB that I need to render in a multiline
textbox. I'd rather keep the markup intact, but for some reason, multiline
textboxes won't escape the codes. But the big problem happens when I try to
encode the string anyway. My text has some special characters, like ®, that
encode to ®. This error code is apparently causing CSS validation
errors because HttpRequest.ValidateString (via its CSS helper class) doesn't
like & when it is followed by a #. So is there a different way to encode
this string to display properly in an ASP.Net page (and submit, but without
turning of request validation for the entire page)?
textbox. I'd rather keep the markup intact, but for some reason, multiline
textboxes won't escape the codes. But the big problem happens when I try to
encode the string anyway. My text has some special characters, like ®, that
encode to ®. This error code is apparently causing CSS validation
errors because HttpRequest.ValidateString (via its CSS helper class) doesn't
like & when it is followed by a #. So is there a different way to encode
this string to display properly in an ASP.Net page (and submit, but without
turning of request validation for the entire page)?