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)

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