Handler for htmlparser2, to get a DOM
Domhandler is a handler for htmlparser2 that creates a tree representation containing all nodes from an HTML page. Built for JavaScript environments, it works in conjunction with htmlparser2 to parse HTML and generate a DOM structure that can then be manipulated using libraries like domutils or cheerio, and rendered with dom-serializer. The handler offers configuration options to include start and end position indices for nodes when parsing is done in a non-streaming fashion.