node-html-parser
node-html-parser copied to clipboard
A very fast HTML parser, generating a simplified DOM, with basic element query support.
Docs say ``` import { parse } from 'node-html-parser'; const root = parse('Hello World'); console.log(root.firstChild.structure); // ul#list // li // #text console.log(root.querySelector('#list')); // { tagName: 'ul', // rawAttrs: 'id="list"', //...
- For #285 Documents the fact that `parse()` adds a wrapper node. Currently that's only hinted at in the example ```js const root = parse('Hello World'); console.log(root.firstChild.structure); ```
I work for a project that validates its links using this library. One link that is frequently validated is the HTML spec at [https://html.spec.whatwg.org/](https://html.spec.whatwg.org/). This page has one of the...
How does this compare to [selectolax](https://github.com/rushter/selectolax#simple-benchmark) (currently fastest HTML parser in Python)?