string.html

Classes

goog.string.html.HtmlParser
An Html parser: parse takes a string and calls methods on goog.string.html.HtmlSaxHandler while it is visiting it.
goog.string.html.HtmlSanitizer
An implementation of the goog.string.HtmlSaxHandler interface that will take each of the html tags and sanitize it.
goog.string.html.HtmlSaxHandler
An interface to the goog.string.html.HtmlParser visitor, that gets called while the HTML is being parsed.

Public Protected Private

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 »
goog.string.html.toLowerCase(str) string
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.
Arguments:
str : string
The string to lower case.
Returns: string  The str in lower case format.
code »

Package string

Package Reference