TextEditor.MakeTextSafe Method
Cleans text according to specifications, such as removing all script and certain URLs.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
Public Shared Function MakeTextSafe ( _
strHtmlToFix As String _
) As String
'Usage
Dim strHtmlToFix As String
Dim returnValue As String
returnValue = TextEditor.MakeTextSafe(strHtmlToFix)
public static string MakeTextSafe(
string strHtmlToFix
)
Parameters
- strHtmlToFix
Type: System.String
Return Value
Type: System.String