parsehtml

1.0.0 • Public • Published

parseHTML

Function to parseHTML. Returns a queryable element or fragment.

Example

var parseHTML = require('parseHTML');
 
var html = parseHTML('<div><a>first</a></div> <div class="x"><a>second</a></div> <div><a>third</a></div>');
console.log(html.querySelector('.x'));
 

Installation

npm install parsehtml

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i parsehtml

      Weekly Downloads

      6

      Version

      1.0.0

      License

      ISC

      Last publish

      Collaborators

      • nicbell