🌜
🌞

Best JavaScript HTML Parser Libraries

htmlparser2

htmlparser2

v8.0.1

Fast & forgiving HTML/XML parser

Last Commit
Sep 27, 2022
GitHub Stargazers
3,641
License
MIT
Contributors
50
parse5

parse5

v7.0.0

HTML parser and serializer.

Last Commit
Sep 27, 2022
GitHub Stargazers
3,124
License
MIT
Contributors
26
html-react-parser

html-react-parser

v3.0.1

HTML to React parser.

Last Commit
Sep 27, 2022
GitHub Stargazers
1,440
License
MIT
Contributors
20
html-minifier-terser

html-minifier-terser

v7.0.0-beta.0

Highly configurable, well-tested, JavaScript-based HTML minifier.

Last Commit
Aug 15, 2022
GitHub Stargazers
227
License
MIT
Contributors
80
sanitize-html

sanitize-html

v2.7.1

Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis

Last Commit
Sep 15, 2022
GitHub Stargazers
3,086
License
MIT
Contributors
fast-xml-parser

fast-xml-parser

v4.0.9

Validate XML, Parse XML, Build XML without C/C++ based libraries

Last Commit
Sep 14, 2022
GitHub Stargazers
1,657
License
MIT
Contributors
50
parse5-sax-parser

parse5-sax-parser

v7.0.0

Streaming SAX-style HTML parser.

Last Commit
Sep 27, 2022
GitHub Stargazers
3,124
License
MIT
Contributors
26
marked

marked

v4.0.18

A markdown parser built for speed

Last Commit
Sep 26, 2022
GitHub Stargazers
28.4K
License
MIT
Contributors
99
parse5-html-rewriting-stream

parse5-html-rewriting-stream

v7.0.0

Streaming HTML rewriter.

Last Commit
Sep 27, 2022
GitHub Stargazers
3,124
License
MIT
Contributors
26
html-dom-parser

html-dom-parser

v3.0.1

HTML to DOM parser.

Last Commit
Aug 5, 2022
GitHub Stargazers
63
License
MIT
Contributors
3
cheerio

cheerio

v1.0.0-rc.12

Tiny, fast, and elegant implementation of core jQuery designed specifically for the server

Last Commit
Sep 27, 2022
GitHub Stargazers
25.5K
License
MIT
Contributors
97
node-html-parser

node-html-parser

v5.3.3

A very fast HTML parser, generating a simplified DOM, with basic element query support.

Last Commit
Sep 24, 2022
GitHub Stargazers
724
License
MIT
Contributors
30
micromark

micromark

v3.0.10

small commonmark compliant markdown parser with positional info and concrete tokens

Last Commit
Jul 31, 2022
GitHub Stargazers
1,294
License
MIT
Contributors
7
posthtml

posthtml

v0.16.6

HTML/XML processor

Last Commit
Sep 1, 2022
GitHub Stargazers
2,829
License
MIT
Contributors
47
@hint/parser-jsx

@hint/parser-jsx

v1.1.1

webhint parser needed to analyze HTML elements in JSX

Last Commit
Sep 26, 2022
GitHub Stargazers
3,406
License
Apache-2.0
Contributors
87
angular-html-parser

angular-html-parser

v1.8.0

A HTML parser extracted from Angular with some modifications

Last Commit
Apr 5, 2021
GitHub Stargazers
32
License
MIT
Contributors
100
html-tokenize

html-tokenize

v2.0.1

transform stream to tokenize html

Last Commit
Mar 24, 2020
GitHub Stargazers
67
License
MIT
Contributors
5
expo-structured-headers

expo-structured-headers

v2.2.1

Expo module implementation of a parser based on https://httpwg.org/specs/rfc8941.html

Last Commit
Sep 27, 2022
GitHub Stargazers
17.6K
License
MIT
Contributors
99
@markuplint/html-parser

@markuplint/html-parser

v2.2.2

HTML parser for markuplint

Last Commit
Sep 7, 2022
GitHub Stargazers
313
License
MIT
Contributors
12
htmljs-parser

htmljs-parser

v5.1.1

An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values

Last Commit
Aug 19, 2022
GitHub Stargazers
115
License
MIT
Contributors
busboy

busboy

v1.6.0

A streaming parser for HTML form data for node.js

Last Commit
Apr 19, 2022
GitHub Stargazers
2,424
License
MIT
Contributors
10
anser

anser

v2.1.1

A low level parser for ANSI sequences.

Last Commit
Feb 2, 2022
GitHub Stargazers
50
License
MIT
Contributors
20
html-minifier

html-minifier

v4.0.0

Highly configurable, well-tested, JavaScript-based HTML minifier.

Last Commit
Oct 10, 2021
GitHub Stargazers
4,689
License
MIT
Contributors
74
string-strip-html

string-strip-html

v11.1.0

Strips HTML tags from strings. No parser, accepts mixed sources.

Last Commit
Sep 27, 2022
GitHub Stargazers
119
License
MIT
Contributors
2