Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

System.Web.Security.AntiXss Namespace

.NET Framework 4.6 and 4.5

Contains methods that you can use to encode strings in order help you protect your application against cross-site scripting (XSS) attacks and LDAP injection attacks.

The encoding algorithms look for a prescribed set of characters that are considered safe and encode all other characters. (This is sometimes referred to as "safe-listing" or "whitelisting.")

  Class Description
Public class AntiXssEncoder Encodes a string for use in HTML, XML, CSS, and URL strings.

  Enumeration Description
Public enumeration LowerCodeCharts Specifies values for the lower region of the UTF-8 Unicode code charts, from U0000 to U0FFF.
Public enumeration LowerMidCodeCharts Specifies values for the lower-middle region of the UTF-8 Unicode code charts, from U1000 to U1EFF.
Public enumeration MidCodeCharts Specifies values for the middle region of the UTF-8 Unicode code charts, from U1F00 to U2DDF.
Public enumeration UpperCodeCharts Specifies values for the upper region of the UTF-8 Unicode code charts, from UA8E0 to UFFFD.
Public enumeration UpperMidCodeCharts Specifies values for the upper-middle region of the UTF-8 Unicode code charts, from U2DE0 to UA8DF.
Show:
© 2015 Microsoft