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)

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