[]
        
(Showing Draft Content)

System.Web.HttpUtility.HtmlDecode

HtmlDecode Method

HtmlDecode(string)

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

Declaration
public static string HtmlDecode(string s)
Parameters
Type Name Description
string s

The HTML string to decode.

Returns
Type Description
string

The decoded text.

HtmlDecode(string, TextWriter)

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

Declaration
public static void HtmlDecode(string s, TextWriter output)
Parameters
Type Name Description
string s

The HTML string to decode

TextWriter output

The TextWriter output stream containing the decoded string.