commit | 137be8db5d5b7f00530fca1591292849ce6779c9 | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch@google.com> | Fri Nov 06 14:01:12 2020 -0800 |
committer | GitHub <noreply@github.com> | Fri Nov 06 14:01:12 2020 -0800 |
tree | 49c80d346c047cb29dee5ef524df6b03380e741b | |
parent | 654c56f8d03d322390f5e4656ae31a3ad35e6c1b [diff] |
Enable and fix lint comment_references (#144) Fix some typos and reference to deleted or renamed members. Rephrase some docs that were not following best practices. Fix some other spelling mistakes in docs.
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; import 'package:html/dom.dart'; 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.