htmlparser2
htmlparser2 copied to clipboard
The fast & forgiving HTML and XML parser
We use cheerio to handle lots of html,and found that htmlparser2 is much faster than parse5 which cheerio used by default, and saving about 40% cpu usage when handling lots...
Greetings folks, and thanks for the lovely library! I am trying to update an older codebase that was using this module, and running into issues with the `WritableStream` interface. The...
Hello, I have encountered an issue while using it. I hope you can help me answer my questions. Thank you very much html ``` ```  It should be src=xxxx...
for example ``` javascript var content = ` startshould ignoreend ` var result = htmlparser2.parseDocument(content, {xmlMode: true}) ``` I get six children. And have the child `should ignore` and ``....
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.18.0 to 8.9.0. Release notes Sourced from @typescript-eslint/eslint-plugin's releases. v8.9.0 8.9.0 (2024-10-14) 🚀 Features rule-tester: hooks for test cases (#10109) 🩹 Fixes eslint-plugin: [no-unnecessary-type-parameters] cannot assume variables...
Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 54.0.0 to 56.0.0. Release notes Sourced from eslint-plugin-unicorn's releases. v56.0.0 New rules prefer-global-this (#2410) 1558cbe prefer-math-min-max (#2432) 7369077 consistent-existence-index-check (#2425) d3e4b80 Breaking Remove better-regex from recommended rules...
When trying to run a service with the following TSConfig: ``` "module": "ESNext", "moduleResolution": "node", ``` an error is thrown: ``` import { Parser as T } from "../../../../node_modules/htmlparser2/lib/esm/Parser.js"; ^^^^^^...
Bumps [@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8) from 2.1.8 to 3.2.1. Release notes Sourced from @vitest/coverage-v8's releases. v3.2.1 🐞 Bug Fixes Use sha1 instead of md5 for hashing - by @sheremet-va (e4c73) expect: Fix chai...
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 2.1.8 to 3.2.1. Release notes Sourced from vitest's releases. v3.2.1 🐞 Bug Fixes Use sha1 instead of md5 for hashing - by @sheremet-va (e4c73) expect: Fix chai...
Bumps [eslint](https://github.com/eslint/eslint) from 8.57.1 to 9.28.0. Release notes Sourced from eslint's releases. v9.28.0 Features b0674be feat: Customization of serialization for languageOptions (#19760) (Nicholas C. Zakas) a95721f feat: Add --pass-on-unpruned-suppressions CLI...