Blame view

node_modules/domutils/test/utils.js 229 Bytes
f7563de62   Palak Handa   first commit
1
2
3
4
5
6
7
8
9
  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;
  };