Added editor

This commit is contained in:
parallax
2017-03-02 10:07:55 +01:00
parent c786d17cdf
commit 26d0bf19f8
333 changed files with 61201 additions and 0 deletions
+9
View File
@@ -0,0 +1,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;
};