AntiXssEncoder.HtmlEncode Method

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: