Share via


SPEncode.XmlRemoveControlChars Method

Encodes the specified XML string and removes control characters.

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 XmlRemoveControlChars ( _
    str As String _
) As String
'Usage
Dim str As String
Dim returnValue As String

returnValue = SPEncode.XmlRemoveControlChars(str)
public static string XmlRemoveControlChars(
    string str
)

Parameters

Return Value

Type: System.String
The encoded string.

See Also

Reference

SPEncode Class

SPEncode Members

Microsoft.SharePoint.Utilities Namespace