@maizzle/framework
Version:
Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.
14 lines (13 loc) • 356 B
JavaScript
import { Parser } from "htmlparser2";
import { DomHandler } from "domhandler";
//#region src/utils/ast/parser.ts
function parse(html, options = {}) {
const handler = new DomHandler();
const parser = new Parser(handler, options);
parser.write(html);
parser.end();
return handler.dom;
}
//#endregion
export { parse };
//# sourceMappingURL=parser.js.map