HttpServerUtilityWrapper.HtmlDecode 方法
定义
对 HTML 编码的字符串进行解码。Decodes an HTML-encoded string.
重载
| HtmlDecode(String) |
对 HTML 编码的字符串进行解码,并返回已解码的字符串。Decodes an HTML-encoded string and returns the decoded string. |
| HtmlDecode(String, TextWriter) |
对 HTML 编码的字符串进行解码,并以流的形式返回结果。Decodes an HTML-encoded string and returns the results in a stream. |
HtmlDecode(String)
对 HTML 编码的字符串进行解码,并返回已解码的字符串。Decodes an HTML-encoded string and returns the decoded string.
public:
override System::String ^ HtmlDecode(System::String ^ s);
public override string HtmlDecode (string s);
override this.HtmlDecode : string -> string
Public Overrides Function HtmlDecode (s As String) As String
参数
- s
- String
要解码的 HTML 字符串。The HTML string to decode.
返回
已解码的文本。The decoded text.
适用于
HtmlDecode(String, TextWriter)
对 HTML 编码的字符串进行解码,并以流的形式返回结果。Decodes an HTML-encoded string and returns the results in a stream.
public:
override void HtmlDecode(System::String ^ s, System::IO::TextWriter ^ output);
public override void HtmlDecode (string s, System.IO.TextWriter output);
override this.HtmlDecode : string * System.IO.TextWriter -> unit
Public Overrides Sub HtmlDecode (s As String, output As TextWriter)
参数
- s
- String
要解码的 HTML 字符串。The HTML string to decode.
- output
- TextWriter
包含已解码字符串的流。The stream to contain the decoded string.
注解
output参数通过引用传递给 HtmlDecode 方法。The output parameter is passed by reference to the HtmlDecode method. 若要在方法完成后检索处理程序的输出,请使用对象的属性和方法 output 。To retrieve the output from the handler after the method completes, you use the properties and methods of the output object. 有关示例,请参见 HtmlDecode。For an example, see HtmlDecode.