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
str
Type: System.StringThe string to encode.
Return Value
Type: System.String
The encoded string.