hj

htmlparser-jresig

Javascript HTML Parser By John Resig (ejohn.org)

Showing:

Popularity

Downloads/wk

4

Maintenance

No Maintenance Data Available

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

HTML Parser By John Resig (ejohn.org)

HTML Parser By John Resig (ejohn.org) wrapped as a Node.js module.

Original code by Erik Arvidsson, Mozilla Public License http://erik.eae.net/simplehtmlparser/simplehtmlparser.js

// Use like so:
HTMLParser(htmlString, {
    start: function(tag, attrs, unary) {},
    end: function(tag) {},
    chars: function(text) {},
    comment: function(text) {}
});

// or to get an XML string:
HTMLtoXML(htmlString);

// or to get an XML DOM Document
HTMLtoDOM(htmlString);

// or to inject into an existing document/DOM node
HTMLtoDOM(htmlString, document);
HTMLtoDOM(htmlString, document.body);

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100