The goog.string.html.HtmlSaxHandler Class

goog.string.html.HtmlSaxHandler()

An interface to the {@code goog.string.html.HtmlParser} visitor, that gets called while the HTML is being parsed.

.cdata(text)

Handler called when CDATA is found.

text {string}
The CDATA text found.

.endDoc()

Handler called when the parsing is done.

.endTag(name)

Handler called when the parser found a closing tag.

name {string}
The name of the tag that is ending.

.pcdata(text)

Handler called when PCDATA is found.

text {string}
The PCDATA text found.

.rcdata(text)

Handler called when RCDATA is found.

text {string}
The RCDATA text found.

.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}
The name of the tag that is starting.
attributes {Array.<string>}
The attributes of the tag.