AntiXssEncoder.HtmlEncode Method

.NET Framework (current version)
 

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

Namespace:   System.Web.Security.AntiXss
Assembly:  System.Web (in System.Web.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticHtmlEncode(String, Boolean)

Encodes the specified string for use as text in HTML markup and optionally specifies whether to use HTML 4.0 named entities.

System_CAPS_protmethodHtmlEncode(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).)

Return to top
Show: