HttpServerUtility.HtmlDecode Method


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

Decodes a string that has been encoded to eliminate invalid HTML characters.

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

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


Decodes an HTML-encoded string and returns the decoded string.

System_CAPS_pubmethodHtmlDecode(String, TextWriter)

Decodes an HTML-encoded string and sends the resulting output to a TextWriter output stream.

Return to top