SPEncode.HtmlDecode method
解碼指定編碼的字串,以 HTML 字元取代實體。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function HtmlDecode ( _
str As String _
) As String
'用途
Dim str As String
Dim returnValue As String
returnValue = SPEncode.HtmlDecode(str)
public static string HtmlDecode(
string str
)
參數
str
Type: System.String要解碼的字串。
傳回值
Type: System.String
傳遞給此方法會將字串的解碼的版本。
備註
HtmlDecode方法會轉換,例如"& lt;HTML & gt;"到"< HTML >"。