commit | d27b898b7edd8dd7d7015ef711b2e18734ca2915 | [log] [tgz] |
---|---|---|
author | Devon Carew <devoncarew@google.com> | Thu Sep 29 11:10:53 2022 -0700 |
committer | GitHub <noreply@github.com> | Thu Sep 29 11:10:53 2022 -0700 |
tree | b2d8b319a6134c483371521a71a3db9a59de1b2a | |
parent | 8243e967caad9932c13971af3b2a7c8f028383d5 [diff] | |
parent | 5a0be754fbc1b02aad82eb452d7aefc680d3691a [diff] |
Merge pull request #189 from dart-lang/update_ci update to our current CI best practices
This is a pure Dart HTML5 parser. It's a port of html5lib from Python.
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.