UNPKG

tripledoc

Version:

Library to read, create and update documents on a Solid Pod

10 lines (8 loc) 229 B
var htmlparser = require("htmlparser2"); exports.makeDom = function(markup) { var handler = new htmlparser.DomHandler(), parser = new htmlparser.Parser(handler); parser.write(markup); parser.done(); return handler.dom; };