parse
takes a string and calls methods on
goog.string.html.HtmlSaxHandler
while it is visiting it.
goog.string.HtmlSaxHandler
interface that
will take each of the html tags and sanitize it.
goog.string.html.HtmlParser
visitor, that gets
called while the HTML is being parsed.
Strips unsafe tags and attributes from HTML.
Arguments:
Returns: string
A sanitized HTML, safe to be embedded on the page.
|
code » | ||||
TODO(goto): why isn't this in the string package ? does this solves any
real problem ? move it to the goog.string package if it does.
|
code » |