handler for htmlparser2 that turns pages into a dom
npm install x-domhandlerThe DOM handler (formally known as DefaultHandler) creates a tree containing all nodes of a page. The tree may be manipulated using the domutils library.
selfClose flag to node.singleQuoteAttribs map to node.This project can work with stricter-htmlparser2.
javascript
var handler = new DomHandler([ callback(err, dom), ] [ options ]);
// var parser = new Parser(handler[, options]);
`Available options are described below.
Example
`javascript
var htmlparser = require("htmlparser2");
var rawHtml = "Xyz