I'm using Server.HTMLEncode to encode my HTML.
I notice it dosn't escape single quotes, which is a limitation if your using single quotes in your html e.g.
<input type='text' .... />
(I've checked this is valid XHTML).
Are there any other limitations or things to note about Server.HTMLEncode, in particular any characters that are not valid XHTMl that this method dosn't deal with?
MSDN says Server.HTMLEncode only does the following:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With