Export (0) Print
Expand All

AntiXssEncoder.HtmlEncode Method

.NET Framework 4.6 and 4.5

Encodes the specified string for use as text in HTML markup.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member HtmlEncode(String, Boolean) Encodes the specified string for use as text in HTML markup and optionally specifies whether to use HTML 4.0 named entities.
Protected method HtmlEncode(String, TextWriter) Encodes the specified string for use as text in HTML markup and outputs the string by using the specified text writer. (Overrides HttpEncoder.HtmlEncode(String, TextWriter).)
Top
Show:
© 2015 Microsoft