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에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET