HttpUtility::HtmlEncode Method

 

Converts a string into an HTML-encoded string.

To encode or decode values outside of a web application, use the WebUtility class.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticHtmlEncode(Object^)

Converts an object's string representation into an HTML-encoded string, and returns the encoded string.

System_CAPS_pubmethodSystem_CAPS_staticHtmlEncode(String^)

Converts a string to an HTML-encoded string.

System_CAPS_pubmethodSystem_CAPS_staticHtmlEncode(String^, TextWriter^)

Converts a string into an HTML-encoded string, and returns the output as a TextWriter stream of output.

Return to top
Show: