htmlsanitizer.js
No description.

File Location

arty/closure/goog/caja/string/html/htmlsanitizer.js

Classes

goog.string.html.HtmlSanitizer
An implementation of the goog.string.HtmlSaxHandler interface that will take each of the html tags and sanitize it.

Public Protected Private

Enumerations

Global Functions

goog.string.html.htmlSanitize(htmlTextopt_urlPolicyopt_nmTokenPolicy) string
Strips unsafe tags and attributes from HTML.
Arguments:
htmlText : string
The HTML text to sanitize.
opt_urlPolicy : function(string): string=
A transform to apply to URL attribute values.
opt_nmTokenPolicy : function(string): string=
A transform to apply to names, IDs, and classes.
Returns: string  A sanitized HTML, safe to be embedded on the page.
code »

Directory html

File Reference