Open
Description
Type of issue
Code doesn't work
Description
Two of the code examples given for HtmlEncode(String, Boolean) and for HtmlEncode(String, TextWriter) incorrectly encode the (Space) character.
Code Example | Incorrect Encoding | Correct Encoding |
---|---|---|
alert('XSS Attack!'); | alert('XSS Attack!'); |
alert('XSS Attack!'); |
"Anti-Cross Site Scripting Namespace" | "Anti-Cross Site Scripting Namespace" |
"Anti-Cross Site Scripting Namespace" |
Page URL
Content source URL
Document Version Independent Id
6789ad2b-05d7-e3fe-97b3-27e6ce8d971f