Clone this repo:
  1. 03757f0 Update (#172) by Kabirou Agouda · 11 days ago master
  2. 2a94e17 Use a late final field over a getter with ??= (#170) by Nate Bosch · 5 weeks ago
  3. 82b0e11 Move to pkg:lints (#169) by Kevin Moore · 3 months ago
  4. 835d58b Update CI (#166) by Kevin Moore · 6 months ago
  5. 1e95e60 Bump dart-lang/setup-dart from 0.3 to 1 (#164) by dependabot[bot] · 8 months 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;

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.