htmlparse
v0.0.8
Published
Minimal blazing fast HTML parser
Downloads
6
Readme
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