Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpServerUtility::HtmlEncode Method

 

Encodes a string to be displayed in a browser.

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_pubmethodHtmlEncode(String^)

HTML-encodes a string and returns the encoded string.

System_CAPS_pubmethodHtmlEncode(String^, TextWriter^)

HTML-encodes a string and sends the resulting output to a TextWriter output stream.

Return to top
Show:
© 2017 Microsoft