goog.string.html
Namespacegoog.string.html.HtmlParser
ClassAn Html parser: {@code parse} takes a string and calls methods on {@code goog.string.html.HtmlSaxHandler} while it is visiting it. … more
goog.string.html.HtmlSanitizer
ClassAn implementation of the {@code goog.string.HtmlSaxHandler} interface that will take each of the html tags and sanitize it. … more
goog.string.html.HtmlSaxHandler
ClassAn interface to the {@code goog.string.html.HtmlParser} visitor, that gets called while the HTML is being parsed. … more
.htmlSanitize(htmlText, opt_urlPolicy, opt_nmTokenPolicy)
Strips unsafe tags and attributes from HTML.
htmlText
{string
}
opt_urlPolicy
{function
(string
) : string
}
opt_nmTokenPolicy
{function
(string
) : string
}
string
}
.toLowerCase(str)
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.
str
{string
}
string
}