UnicodeCharacterEncoder.MarkAsSafe ?

Nov 17, 2010 at 11:21 PM

Hey there 

I was under the impression that the UnicodeCharacterEncoder.MarkAsSafe method can adjust the list of "safe" characters not to be encoded by the HtmlAttributeEncode. 

I can not figure out how to add a safe character, something like *..... can somebody provide me with an example i can get started with ?



Nov 17, 2010 at 11:25 PM

Not exactly - it allows you to select from a pre-determined set of character collections which are roughly equivalent to the unicode character tables. It does not support individual characters. This thread has pointers to how to adjust the safe list but we don't encourage or support that.