# domhandler [![Build Status](https://travis-ci.org/fb55/domhandler.svg?branch=master)](https://travis-ci.org/fb55/domhandler) The DOM handler creates a tree containing all nodes of a page. The tree may be manipulated using the [domutils](https://github.com/fb55/domutils) or [cheerio](https://github.com/cheeriojs/cheerio) libraries. ## Usage ```javascript const handler = new DomHandler([ callback(err, dom), ] [ options ]); // const parser = new Parser(handler[, options]); ``` Available options are described below. ## Example ```javascript const { Parser } = require("htmlparser2"); const { DomHandler } = require("domhandler"); const rawHtml = "Xyz