HtmlParser class

解析HTML/XML元素并返回' start ', ' end ', ' comment ', ' chars '。 基于这些回调函数构造JSON。

Constructors

HtmlParser(String html, Map<String, Function> handler)

Properties

chars ↔ dynamic
getter/setter pair
handler Map<String, Function>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
index ↔ dynamic
getter/setter pair
last String?
getter/setter pair
match String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stack List<String>
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseEndTag([String tagName = ""]) → dynamic
parseStartTag(String tag, String tagName, bool unary) → dynamic
stackLast() String
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited