Modifier

Partager via


HttpEncoder.HtmlDecode(String, TextWriter) Method

Definition

Decodes a value from an HTML-encoded string.

protected public:
 virtual void HtmlDecode(System::String ^ value, System::IO::TextWriter ^ output);
protected internal virtual void HtmlDecode (string value, System.IO.TextWriter output);
abstract member HtmlDecode : string * System.IO.TextWriter -> unit
override this.HtmlDecode : string * System.IO.TextWriter -> unit
Protected Friend Overridable Sub HtmlDecode (value As String, output As TextWriter)

Parameters

value
String

The string to decode.

output
TextWriter

The text writer to write the decoded value to.

Exceptions

output is null.

Remarks

The following table lists the character sequences that the ASP.NET decoding logic can decode.

Character sequence Rule
&#NNN; (decimal codes for ASCII characters). Decoded as the specified ASCII character. The character sequence starts at the first digit after the # character and finishes at the semicolon.
&#xZZ; (hexadecimal codes for ASCII characters). Decoded as the specified ASCII character. The encoded form specifies the character by using hexadecimal characters instead of a decimal value. The character sequence starts at the first digit after the # character and finishes at the semicolon.
Named HTML entities. Decoded as the equivalent ASCII character.

Applies to