File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/node_modules/safevalues/dom/globals/dom_parser.js
"use strict";
/**
* @license
* SPDX-License-Identifier: Apache-2.0
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseFromString = exports.parseHtml = void 0;
var html_impl_1 = require("../../internals/html_impl");
/** Safely parses a string using the HTML parser. */
function parseHtml(parser, html) {
return parseFromString(parser, html, 'text/html');
}
exports.parseHtml = parseHtml;
/** Safely parses a string using the HTML or XML parser. */
function parseFromString(parser, content, contentType) {
return parser.parseFromString((0, html_impl_1.unwrapHtml)(content), contentType);
}
exports.parseFromString = parseFromString;