![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-page-builder/view/adminhtml/web/js/converter/html/ |
/*eslint-disable */ /* jscs:disable */ define(["Magento_PageBuilder/js/utils/directives", "Magento_PageBuilder/js/utils/object"], function (_directives, _object) { /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** * @api */ var Decode = /*#__PURE__*/function () { "use strict"; function Decode() {} var _proto = Decode.prototype; /** * Convert value to internal format * * @param {string} value * @returns {string | object} */ _proto.fromDom = function fromDom(value) { // Convert the encoded string back to HTML without executing var html = new DOMParser().parseFromString(value, "text/html"); return html.body.textContent; } /** * Convert value to knockout format * * @param {string} name * @param {Object} data * @returns {string} */ ; _proto.toDom = function toDom(name, data) { return (0, _directives.removeQuotesInMediaDirectives)((0, _object.get)(data, name)); }; return Decode; }(); return Decode; }); //# sourceMappingURL=decode.js.map