Sanitize a string of unsafe HTML to eliminate XSS (cross-site scripting) security risks.
This method allows tags and standard attributes, however data- attributes are not allowed.
Script tags are not allowed either.
Note that you must pass a SanitizeOptions.uriTransformer function in the options
if you wish to allow URIs in your content.
Sanitize a string of unsafe HTML to eliminate XSS (cross-site scripting) security risks. This method allows tags and standard attributes, however
data-
attributes are not allowed. Script tags are not allowed either. Note that you must pass a SanitizeOptions.uriTransformer function in the options if you wish to allow URIs in your content.