HttpServerUtilityBase.HtmlDecode Method

Definition

When overridden in a derived class, decodes an HTML-encoded string.

Overloads

HtmlDecode(String)

When overridden in a derived class, decodes an HTML-encoded string and returns the decoded string.

HtmlDecode(String, TextWriter)

When overridden in a derived class, decodes an HTML-encoded string and returns the results in a stream.

HtmlDecode(String)

When overridden in a derived class, decodes an HTML-encoded string and returns the decoded string.

public virtual string HtmlDecode (string s);

Parameters

s
String

The HTML string to decode.

Returns

The decoded text.

Exceptions

Applies to

.NET Framework 4.8.1 ja muud versioonid
Toode Versioonid
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

HtmlDecode(String, TextWriter)

When overridden in a derived class, decodes an HTML-encoded string and returns the results in a stream.

public virtual void HtmlDecode (string s, System.IO.TextWriter output);

Parameters

s
String

The HTML string to decode.

output
TextWriter

The stream to contain the decoded string.

Exceptions

Remarks

The output parameter is passed by reference to the HtmlDecode method. To retrieve the output from the handler after the method completes, you use the properties and methods of the output object. For an example, see HtmlDecode.

Applies to

.NET Framework 4.8.1 ja muud versioonid
Toode Versioonid
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1