commit | aaf7d1a1e1ef87599a64b574109a112b677b9c6a | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@users.noreply.github.com> | Thu Jan 25 13:52:33 2024 -0800 |
committer | GitHub <noreply@github.com> | Thu Jan 25 13:52:33 2024 -0800 |
tree | c537c5c97b26b19417322c813b06a2c2cd70d33f | |
parent | 06bc148600b1d1a70f2256bdf788c213f1f60f55 [diff] |
blast_repo fixes (#235) auto-publish, github-actions, no-response
A Dart implementation of an HTML5 parser.
Parsing HTML is easy!
import 'package:html/parser.dart'; void 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.