HttpEncoder.HtmlDecode(String, TextWriter) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.