android-wrapper/@capacitor/assets/node_modules/node-html-parser/dist/valid.js
Pieter Vander Vennet 6947a1adba
Some checks failed
/ build_android (push) Failing after 21s
Add dependency
2025-06-18 18:50:46 +02:00

13 lines
439 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var html_1 = require("./nodes/html");
/**
* Parses HTML and returns a root element
* Parse a chuck of HTML source.
*/
function valid(data, options) {
if (options === void 0) { options = { lowerCaseTagName: false, comment: false }; }
var stack = (0, html_1.base_parse)(data, options);
return Boolean(stack.length === 1);
}
exports.default = valid;