แก้ไข

แชร์ผ่าน


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 System::String ^ HtmlDecode(System::String ^ s);
public virtual string HtmlDecode (string s);
abstract member HtmlDecode : string -> string
override this.HtmlDecode : string -> string
Public Overridable Function HtmlDecode (s As String) As String

Parameters

s
String

The HTML string to decode.

Returns

The decoded text.

Exceptions

Applies to

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(System::String ^ s, System::IO::TextWriter ^ output);
public virtual void HtmlDecode (string s, System.IO.TextWriter output);
abstract member HtmlDecode : string * System.IO.TextWriter -> unit
override this.HtmlDecode : string * System.IO.TextWriter -> unit
Public Overridable Sub HtmlDecode (s As String, output As TextWriter)

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