TagVisitor
implementation.start()
& end()
text(CharSequence)
text()
is called for all text blocks, including the whitespaces and indentations. comment(CharSequence)
tag(Tag)
Tag
instance, containing various information about the tag: tags name, attributes, depth level, etc.Tag
instance is reused during HTML parsing for better performances! The same Tag
instance is passed to all callback methods and for every detected HTML tag. Do not store it internally!script(Tag, CharSequence)
script
tags. The callback method receives the script Tag instance and the script body.doctype(Doctype)
doctype
tag.xml()
and cdata()