初始化

This commit is contained in:
zhu
2026-03-27 13:29:41 +08:00
commit ee03132cee
112 changed files with 6417 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
var DomHandler = require("./domhandler/index.js");
var Parser = require("./Parser.js");
function parseDocument(data, options) {
var handler = new DomHandler(undefined, options);
new Parser(handler, options).end(data);
return handler.root.children;
}
module.exports = parseDocument;