Fix doc comments (#256) Update comments that set off a false positive in the `unintended_html_in_doc_comment` lint. For references to core Dart types with generics, replace the square braces with backticks since it isn't useful to constantly link them. For the comments that are edited, and a few nearby, update for style: - Separate out a header as it's own paragraph. - Reduce repetitive phrasing and redundant links to the same arguments. Use a trailing comma for a long argument list, and re-order the arguments so that the always-useful arguments are at the top, and the arguments only pertaining to certain uses follow.
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.