HttpServerUtilityWrapper.HtmlDecode 方法

定义

解码 HTML 编码的字符串。

重载

名称 说明
HtmlDecode(String)

解码 HTML 编码的字符串并返回解码的字符串。

HtmlDecode(String, TextWriter)

解码 HTML 编码的字符串,并在流中返回结果。

HtmlDecode(String)

解码 HTML 编码的字符串并返回解码的字符串。

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 字符串。

返回

解码的文本。

适用于

HtmlDecode(String, TextWriter)

解码 HTML 编码的字符串,并在流中返回结果。

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 字符串。

output
TextWriter

要包含解码字符串的流。

注解

参数 output 通过对方法的 HtmlDecode 引用传递。 若要在方法完成后从处理程序检索输出,请使用对象的属性和方法 output 。 有关示例,请参阅 HtmlDecode

适用于