goog.string.html.HtmlSanitizer
Classgoog.string.html.HtmlSanitizer
> goog.string.html.HtmlSaxHandler
goog.string.html.HtmlSanitizer(stringBuffer, opt_urlPolicy, opt_nmTokenPolicy)
An implementation of the {@code goog.string.HtmlSaxHandler} interface that will take each of the html tags and sanitize it.
stringBuffer
{goog.string.StringBuffer
}
opt_urlPolicy
{?function
(string
):string
}
opt_nmTokenPolicy
{?function
(string
):string
}
goog.string.html.HtmlSanitizer.AttributeType
EnumThe HTML types the parser supports. … more
.Attributes
A map of attributes to types it has.
.cdata(text)
Handler called when CDATA is found.
text
{string
}
.endDoc()
Handler called when the parsing is done.
.endTag(name)
Handler called when the parser found a closing tag.
name
{string
}
.pcdata(text)
Handler called when PCDATA is found.
text
{string
}
.rcdata(text)
Handler called when RCDATA is found.
text
{string
}
.startDoc()
Handler called when the parser is starting to parse the document.
.startTag(name, attributes)
Handler called when the parser found a new tag.
name
{string
}
attributes
{Array
.<string
>}