Package selection guidance compiled from public package information, community data, and project usage.
The html package provides APIs for parsing and manipulating HTML content in Dart applications outside of a browser environment. It enables developers to work with HTML documents programmatically, offering features like DOM traversal, element manipulation, and parsing of raw HTML strings. This is particularly useful for server-side rendering, static site generation, or processing HTML content in non-browser contexts such as mobile apps or desktop applications. The package supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux.
Use cases
Parsing HTML from strings
Manipulating HTML documents programmatically
Server-side HTML processing
Static site generation
Extracting data from HTML
Building HTML parsers
Key features
DOM-like API for HTML manipulation
Support for parsing malformed HTML
Cross-platform compatibility
Lightweight and efficient
Built-in utilities for element selection
Extensible parsing and serialization
Suitable for
Backend Dart services
Mobile app content processing
Desktop application text handling
Web scraping utilities
HTML transformation tools
Considerations
Not intended for browser environments
Limited CSS styling support
Requires manual handling of encoding
Performance may vary with large documents
No built-in sanitization
Depends on external source code for updates
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
Overview
This repository is home to tooling related Dart packages. Generally, this means
packages published through the
tools.dart.dev publisher that
don't naturally belong to other topic monorepos (like
dart-lang/build,
dart-lang/test, or
dart-lang/shelf).
A client library for authenticating with a remote service via OAuth2 on behalf of a user, and making authorized HTTP requests with the user's OAuth2 credentials.