HTML parsing/serialization toolset for Node.js. WHATWG HTML Living Standard (aka HTML5)-compliant.
Parse5 is an HTML parsing and serialization toolset for Node.js that complies with the WHATWG HTML Living Standard. Built for Node.js, it includes multiple packages offering different parsing approaches: a core parser and serializer, streaming variants with SAX-style and scripting support, an HTML rewriting stream, plain text conversion, and an adapter for the htmlparser2 tree format. The project, maintained by inikulin, has been adopted by major projects including jsdom, Angular, Lit, Cheerio, and rehype, and is positioned as the fastest spec-compliant HTML parser for Node.