html_parser 0.5.0 copy "html_parser: ^0.5.0" to clipboard
html_parser: ^0.5.0 copied to clipboard

outdatedDart 1 only

A fast and forgiving HTML parser for Dart.

html_parser #

Build Status Pub

A fast and forgiving HTML parser for Dart. Loosely based on htmlparser2.

This package is in development as an experiment to replace the transpiled HTML parser from angular_2. It is not meant to be a full DOM parser, or to emulate behavior of the browser - for that see package:html.

Goals are speed, ease of use, and great error messages.

Usage #

import 'package:html_parser/html_parser.dart';

void main() {
  var fragment = parseHtml('<div>Hello World</div>');

  // Prints: '<div>Hello World</div>'
  print(nodeToString(fragment));
}

Limitations #

A lot is missing from making this a package ready to use.

See issues for more details.

0
likes
10
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

A fast and forgiving HTML parser for Dart.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

charcode, collection, string_scanner

More

Packages that depend on html_parser