IsSafeHTML
Verifies if the HTML is safe using antisamy policy rules.
If no policy is provided, the default policy is used which is the eBay policy.
Available policies are:
anythinggoes
ebay
myspace
slashdot
tinymce
If a policy is not one of the above, it is assumed to be an absolute path to a custom policy file.
Method Signature
IsSafeHTML(string=[string], policy=[string])
Arguments
Argument
Type
Required
Description
Default
string
string
true
The HTML to sanitize
policy
string
false
The policy to use for sanitization
Examples
Related
Last updated
Was this helpful?