初始化
This commit is contained in:
8
towxml/parse/parse2/index.js
Normal file
8
towxml/parse/parse2/index.js
Normal 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;
|
||||
Reference in New Issue
Block a user