html_paser library

Functions

getElementNameTuple(Element e) → (String, String?)
Convenience function to get the pair of namespace and localName.
parse(dynamic input, {String? encoding, bool generateSpans = false, String? sourceUrl}) Document
Parse an html5 document into a tree.
parseFragment(dynamic input, {String container = 'div', String? encoding, bool generateSpans = false, String? sourceUrl}) DocumentFragment
Parse an html5 document fragment into a tree.

Typedefs

TokenProccessor = Token Function(Token token)

Exceptions / Errors

ParseError
Error in parsed document.