This commit is contained in:
parent
55470c090d
commit
6947a1adba
1260 changed files with 111297 additions and 0 deletions
13
@capacitor/assets/node_modules/node-html-parser/dist/valid.js
generated
vendored
Normal file
13
@capacitor/assets/node_modules/node-html-parser/dist/valid.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"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;
|
Loading…
Add table
Add a link
Reference in a new issue