commit | 28fb8b97acf471bedcfa4eaf38899a0f65d5e30d | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@users.noreply.github.com> | Wed Nov 09 15:34:41 2022 -0800 |
committer | GitHub <noreply@github.com> | Wed Nov 09 15:34:41 2022 -0800 |
tree | 317a204abc348ef803836f8e547ccaeb00024b7f | |
parent | 0bf601959ac98e6cdf1925a1cdab70bd6a5ddc45 [diff] |
blast_repo fixes (#191) Dependabot GitHub Action
A Dart implementation of an 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.