共用方式為


SPHttpUtility.HtmlDecode Method (String)

Retrieves a decoded version of the specified encoded HTML string.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Shared Function HtmlDecode ( _
    valueToDecode As String _
) As String
'Usage
Dim valueToDecode As String
Dim returnValue As String

returnValue = SPHttpUtility.HtmlDecode(valueToDecode)
public static string HtmlDecode(
    string valueToDecode
)

Parameters

  • valueToDecode
    Type: System.String

    The HTML string to be decoded.

Return Value

Type: System.String
The decoded string.

Remarks

To encode an HTML string, use the HTMLEncode method.

See Also

Reference

SPHttpUtility Class

SPHttpUtility Members

HtmlDecode Overload

Microsoft.SharePoint.Utilities Namespace