commit | 5d87dc8a0638b9f494e7044dc78bd4520341ab6d | [log] [tgz] |
---|---|---|
author | Devon Carew <devoncarew@google.com> | Wed May 03 12:13:26 2023 -0700 |
committer | GitHub <noreply@github.com> | Wed May 03 12:13:26 2023 -0700 |
tree | 83b129b1e35cf7160eb0c3130f855d51b501c221 | |
parent | 0438b26b90be4d491ec55586b6b841f41e4fbf1e [diff] |
added package topics to the pubspec file (#215) * added package topics to the pubspec file * Update pubspec.yaml
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.