Edit File by line
/home/barbar84/public_h.../wp-inclu.../js/dist
File: html-entities.js
this["wp"] = this["wp"] || {}; this["wp"]["htmlEntities"] =
[0] Fix | Delete
/******/ (function(modules) { // webpackBootstrap
[1] Fix | Delete
/******/ // The module cache
[2] Fix | Delete
/******/ var installedModules = {};
[3] Fix | Delete
/******/
[4] Fix | Delete
/******/ // The require function
[5] Fix | Delete
/******/ function __webpack_require__(moduleId) {
[6] Fix | Delete
/******/
[7] Fix | Delete
/******/ // Check if module is in cache
[8] Fix | Delete
/******/ if(installedModules[moduleId]) {
[9] Fix | Delete
/******/ return installedModules[moduleId].exports;
[10] Fix | Delete
/******/ }
[11] Fix | Delete
/******/ // Create a new module (and put it into the cache)
[12] Fix | Delete
/******/ var module = installedModules[moduleId] = {
[13] Fix | Delete
/******/ i: moduleId,
[14] Fix | Delete
/******/ l: false,
[15] Fix | Delete
/******/ exports: {}
[16] Fix | Delete
/******/ };
[17] Fix | Delete
/******/
[18] Fix | Delete
/******/ // Execute the module function
[19] Fix | Delete
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
[20] Fix | Delete
/******/
[21] Fix | Delete
/******/ // Flag the module as loaded
[22] Fix | Delete
/******/ module.l = true;
[23] Fix | Delete
/******/
[24] Fix | Delete
/******/ // Return the exports of the module
[25] Fix | Delete
/******/ return module.exports;
[26] Fix | Delete
/******/ }
[27] Fix | Delete
/******/
[28] Fix | Delete
/******/
[29] Fix | Delete
/******/ // expose the modules object (__webpack_modules__)
[30] Fix | Delete
/******/ __webpack_require__.m = modules;
[31] Fix | Delete
/******/
[32] Fix | Delete
/******/ // expose the module cache
[33] Fix | Delete
/******/ __webpack_require__.c = installedModules;
[34] Fix | Delete
/******/
[35] Fix | Delete
/******/ // define getter function for harmony exports
[36] Fix | Delete
/******/ __webpack_require__.d = function(exports, name, getter) {
[37] Fix | Delete
/******/ if(!__webpack_require__.o(exports, name)) {
[38] Fix | Delete
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
[39] Fix | Delete
/******/ }
[40] Fix | Delete
/******/ };
[41] Fix | Delete
/******/
[42] Fix | Delete
/******/ // define __esModule on exports
[43] Fix | Delete
/******/ __webpack_require__.r = function(exports) {
[44] Fix | Delete
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
[45] Fix | Delete
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
[46] Fix | Delete
/******/ }
[47] Fix | Delete
/******/ Object.defineProperty(exports, '__esModule', { value: true });
[48] Fix | Delete
/******/ };
[49] Fix | Delete
/******/
[50] Fix | Delete
/******/ // create a fake namespace object
[51] Fix | Delete
/******/ // mode & 1: value is a module id, require it
[52] Fix | Delete
/******/ // mode & 2: merge all properties of value into the ns
[53] Fix | Delete
/******/ // mode & 4: return value when already ns object
[54] Fix | Delete
/******/ // mode & 8|1: behave like require
[55] Fix | Delete
/******/ __webpack_require__.t = function(value, mode) {
[56] Fix | Delete
/******/ if(mode & 1) value = __webpack_require__(value);
[57] Fix | Delete
/******/ if(mode & 8) return value;
[58] Fix | Delete
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
[59] Fix | Delete
/******/ var ns = Object.create(null);
[60] Fix | Delete
/******/ __webpack_require__.r(ns);
[61] Fix | Delete
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
[62] Fix | Delete
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
[63] Fix | Delete
/******/ return ns;
[64] Fix | Delete
/******/ };
[65] Fix | Delete
/******/
[66] Fix | Delete
/******/ // getDefaultExport function for compatibility with non-harmony modules
[67] Fix | Delete
/******/ __webpack_require__.n = function(module) {
[68] Fix | Delete
/******/ var getter = module && module.__esModule ?
[69] Fix | Delete
/******/ function getDefault() { return module['default']; } :
[70] Fix | Delete
/******/ function getModuleExports() { return module; };
[71] Fix | Delete
/******/ __webpack_require__.d(getter, 'a', getter);
[72] Fix | Delete
/******/ return getter;
[73] Fix | Delete
/******/ };
[74] Fix | Delete
/******/
[75] Fix | Delete
/******/ // Object.prototype.hasOwnProperty.call
[76] Fix | Delete
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
[77] Fix | Delete
/******/
[78] Fix | Delete
/******/ // __webpack_public_path__
[79] Fix | Delete
/******/ __webpack_require__.p = "";
[80] Fix | Delete
/******/
[81] Fix | Delete
/******/
[82] Fix | Delete
/******/ // Load entry module and return exports
[83] Fix | Delete
/******/ return __webpack_require__(__webpack_require__.s = "1FHn");
[84] Fix | Delete
/******/ })
[85] Fix | Delete
/************************************************************************/
[86] Fix | Delete
/******/ ({
[87] Fix | Delete
[88] Fix | Delete
/***/ "1FHn":
[89] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[90] Fix | Delete
[91] Fix | Delete
"use strict";
[92] Fix | Delete
__webpack_require__.r(__webpack_exports__);
[93] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "decodeEntities", function() { return decodeEntities; });
[94] Fix | Delete
/** @type {HTMLTextAreaElement} */
[95] Fix | Delete
var _decodeTextArea;
[96] Fix | Delete
/**
[97] Fix | Delete
* Decodes the HTML entities from a given string.
[98] Fix | Delete
*
[99] Fix | Delete
* @param {string} html String that contain HTML entities.
[100] Fix | Delete
*
[101] Fix | Delete
* @example
[102] Fix | Delete
* ```js
[103] Fix | Delete
* const result = decodeEntities( 'á' );
[104] Fix | Delete
* console.log( result ); // result will be "รก"
[105] Fix | Delete
* ```
[106] Fix | Delete
*
[107] Fix | Delete
* @return {string} The decoded string.
[108] Fix | Delete
*/
[109] Fix | Delete
[110] Fix | Delete
[111] Fix | Delete
function decodeEntities(html) {
[112] Fix | Delete
// not a string, or no entities to decode
[113] Fix | Delete
if ('string' !== typeof html || -1 === html.indexOf('&')) {
[114] Fix | Delete
return html;
[115] Fix | Delete
} // create a textarea for decoding entities, that we can reuse
[116] Fix | Delete
[117] Fix | Delete
[118] Fix | Delete
if (undefined === _decodeTextArea) {
[119] Fix | Delete
if (document.implementation && document.implementation.createHTMLDocument) {
[120] Fix | Delete
_decodeTextArea = document.implementation.createHTMLDocument('').createElement('textarea');
[121] Fix | Delete
} else {
[122] Fix | Delete
_decodeTextArea = document.createElement('textarea');
[123] Fix | Delete
}
[124] Fix | Delete
}
[125] Fix | Delete
[126] Fix | Delete
_decodeTextArea.innerHTML = html;
[127] Fix | Delete
var decoded = _decodeTextArea.textContent;
[128] Fix | Delete
_decodeTextArea.innerHTML = '';
[129] Fix | Delete
/**
[130] Fix | Delete
* Cast to string, HTMLTextAreaElement should always have `string` textContent.
[131] Fix | Delete
*
[132] Fix | Delete
* > The `textContent` property of the `Node` interface represents the text content of the
[133] Fix | Delete
* > node and its descendants.
[134] Fix | Delete
* >
[135] Fix | Delete
* > Value: A string or `null`
[136] Fix | Delete
* >
[137] Fix | Delete
* > * If the node is a `document` or a Doctype, `textContent` returns `null`.
[138] Fix | Delete
* > * If the node is a CDATA section, comment, processing instruction, or text node,
[139] Fix | Delete
* > textContent returns the text inside the node, i.e., the `Node.nodeValue`.
[140] Fix | Delete
* > * For other node types, `textContent returns the concatenation of the textContent of
[141] Fix | Delete
* > every child node, excluding comments and processing instructions. (This is an empty
[142] Fix | Delete
* > string if the node has no children.)
[143] Fix | Delete
*
[144] Fix | Delete
* @see https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent
[145] Fix | Delete
*/
[146] Fix | Delete
[147] Fix | Delete
return (
[148] Fix | Delete
/** @type {string} */
[149] Fix | Delete
decoded
[150] Fix | Delete
);
[151] Fix | Delete
}
[152] Fix | Delete
[153] Fix | Delete
[154] Fix | Delete
/***/ })
[155] Fix | Delete
[156] Fix | Delete
/******/ });
[157] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function