Html

screenshot of Html

Dart port of html5lib. For parsing HTML/HTML5 with Dart. Works in the client and on the server.

Overview:

The HTMLDart package is a Dart implementation of an HTML5 parser that makes parsing HTML easy. It allows users to pass a String or list of bytes to parse, provides a method for parsing document fragments, and offers HtmlParser for more low-level control. The package was originally a port of the Python html5lib library.

Features:

  • Dart Implementation: The package provides a Dart implementation of an HTML5 parser.
  • Flexible Input: Users can parse HTML by passing a String or list of bytes.
  • Document Fragment Parsing: Includes a method for parsing document fragments.
  • HtmlParser for Low-Level Control: Offers HtmlParser for more granular control over parsing.

Summary:

The HTMLDart package provides a convenient and easy-to-use HTML5 parser in Dart. It offers flexibility in parsing HTML content, including the ability to parse document fragments and provides a low-level HtmlParser for more specific parsing requirements. With its origins as a port of the Python html5lib library, HTMLDart is a reliable tool for handling HTML parsing tasks in Dart projects.