commit | 0740fc737350959cfdb5f8a34425a29d0dc0d285 | [log] [tgz] |
---|---|---|
author | Sam Rawlins <srawlins@google.com> | Thu Sep 29 13:41:02 2022 -0700 |
committer | GitHub <noreply@github.com> | Thu Sep 29 13:41:02 2022 -0700 |
tree | 6ef36ed97755c73469881210ed5fc2f27edd5ca8 | |
parent | faafebfd2965ce38ed8ca22e42791255d48ad5e7 [diff] | |
parent | 07a1f46ed24b584f1c40a85e13dc08aeccd601fe [diff] |
Merge pull request #187 from dart-lang/growable Use growable lists and avoid dynamic
This is a Dart HTML5 parser.
Parsing HTML is easy!
import 'package:html/parser.dart' show parse; main() { var document = parse( '<body>Hello world! <a href="www.html5rocks.com">HTML5 rocks!'); print(document.outerHtml); }
You can pass a String or list of bytes to parse
. There's also parseFragment
for parsing a document fragment, and HtmlParser
if you want more low level control.
This package was a port of the Python html5lib library.