I am using Server.HTMLEncode to encode my HTML.
I notice that it does not avoid single quotes, which is a limitation if you use single quotes in your html, for example. <input type='text' .... />
(I checked that this is valid XHTML).
Are there any other restrictions or things that should be considered in Server.HTMLEncode, in particular, any characters that are not valid XHTMl that this method is not related to?
source share