HtmlEncode Method

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)


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
© 2016 Microsoft