Minimal blazing fast HTML parser
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
rollup
src
test
.gitattributes
.gitignore
LICENSE
README.md
package.json

README.md

A minimal blazing fast HTML parser with zero dependencies.

Installation

npm install htmlparse

Or clone the source:

git clone https://github.com/maierfelix/htmlparse.git

API

parse

Use parse(str) to parse an HTML string

let ast = parser.parse(str); // returns ast

serialize

Use serialize(ast) to serialize an AST back into it's relative string

let ast = parser.serialize(ast); // returns string