SafeHtmlWrapper.MakeSafe Method
Used by HTML input controls to sanitize user input, restricting HTML input to a fixed list of known safe elements. For more information, contact us.
Namespace: Microsoft.Office.Server.Infrastructure
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Shared Function MakeSafe ( _
strUnsafeHtml As String _
) As String
'Usage
Dim strUnsafeHtml As String
Dim returnValue As String
returnValue = SafeHtmlWrapper.MakeSafe(strUnsafeHtml)
public static string MakeSafe(
string strUnsafeHtml
)
Parameters
- strUnsafeHtml
Type: System.String
Return Value
Type: System.String