Clone this repo:
  1. b4f369a Stable null safe v0.15.0 (#154) by Kevin Moore · 3 weeks ago master 0.15.0
  2. ef72ea0 Prepare to publish (#152) by Nate Bosch · 5 weeks ago 0.15.0-nullsafety.0
  3. 00cd3c2 Migrate to null safety (#139) by Nate Bosch · 6 weeks ago
  4. c1997dc Use .0 version. Mention migration in changelog by Nate Bosch · 6 weeks ago
  5. 07412dd Dont' bothery with null_safety branch by Nate Bosch · 6 weeks ago

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="">HTML5 rocks!');

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.