The fast & forgiving HTML and XML parser. htmlparser2 is the fastest HTML parser, and takes some shortcuts to get there. If you need strict HTML spec compliance, have a look at parse5. htmlparser2 itself provides a callback interface that allows the consumption of documents with minimal allocations. While the Parser interface closely resembles Node.js streams, it’s not a 100% match. Use the WritableStream interface to process a streaming input.

Features

  • Fast & forgiving HTML/XML parser
  • Handler for htmlparser2 that turns documents into a DOM
  • Utilities for working with domhandler’s DOM
  • CSS selector engine, compatible with domhandler’s DOM
  • jQuery API for domhandler’s DOM
  • Serializer for domhandler’s DOM

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow htmlparser2

htmlparser2 Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of htmlparser2!

Additional Project Details

Operating Systems

Windows

Programming Language

TypeScript

Related Categories

TypeScript HTML XHTML, TypeScript XML Parsers

Registered

2023-04-18