Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist
File: escape-html.js
/******/ (() => { // webpackBootstrap
[0] Fix | Delete
/******/ "use strict";
[1] Fix | Delete
/******/ // The require scope
[2] Fix | Delete
/******/ var __webpack_require__ = {};
[3] Fix | Delete
/******/
[4] Fix | Delete
/************************************************************************/
[5] Fix | Delete
/******/ /* webpack/runtime/define property getters */
[6] Fix | Delete
/******/ (() => {
[7] Fix | Delete
/******/ // define getter functions for harmony exports
[8] Fix | Delete
/******/ __webpack_require__.d = (exports, definition) => {
[9] Fix | Delete
/******/ for(var key in definition) {
[10] Fix | Delete
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
[11] Fix | Delete
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
[12] Fix | Delete
/******/ }
[13] Fix | Delete
/******/ }
[14] Fix | Delete
/******/ };
[15] Fix | Delete
/******/ })();
[16] Fix | Delete
/******/
[17] Fix | Delete
/******/ /* webpack/runtime/hasOwnProperty shorthand */
[18] Fix | Delete
/******/ (() => {
[19] Fix | Delete
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
[20] Fix | Delete
/******/ })();
[21] Fix | Delete
/******/
[22] Fix | Delete
/******/ /* webpack/runtime/make namespace object */
[23] Fix | Delete
/******/ (() => {
[24] Fix | Delete
/******/ // define __esModule on exports
[25] Fix | Delete
/******/ __webpack_require__.r = (exports) => {
[26] Fix | Delete
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
[27] Fix | Delete
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
[28] Fix | Delete
/******/ }
[29] Fix | Delete
/******/ Object.defineProperty(exports, '__esModule', { value: true });
[30] Fix | Delete
/******/ };
[31] Fix | Delete
/******/ })();
[32] Fix | Delete
/******/
[33] Fix | Delete
/************************************************************************/
[34] Fix | Delete
var __webpack_exports__ = {};
[35] Fix | Delete
// ESM COMPAT FLAG
[36] Fix | Delete
__webpack_require__.r(__webpack_exports__);
[37] Fix | Delete
[38] Fix | Delete
// EXPORTS
[39] Fix | Delete
__webpack_require__.d(__webpack_exports__, {
[40] Fix | Delete
escapeAmpersand: () => (/* binding */ escapeAmpersand),
[41] Fix | Delete
escapeAttribute: () => (/* binding */ escapeAttribute),
[42] Fix | Delete
escapeEditableHTML: () => (/* binding */ escapeEditableHTML),
[43] Fix | Delete
escapeHTML: () => (/* binding */ escapeHTML),
[44] Fix | Delete
escapeLessThan: () => (/* binding */ escapeLessThan),
[45] Fix | Delete
escapeQuotationMark: () => (/* binding */ escapeQuotationMark),
[46] Fix | Delete
isValidAttributeName: () => (/* binding */ isValidAttributeName)
[47] Fix | Delete
});
[48] Fix | Delete
[49] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/escape-html/build-module/escape-greater.js
[50] Fix | Delete
/**
[51] Fix | Delete
* Returns a string with greater-than sign replaced.
[52] Fix | Delete
*
[53] Fix | Delete
* Note that if a resolution for Trac#45387 comes to fruition, it is no longer
[54] Fix | Delete
* necessary for `__unstableEscapeGreaterThan` to exist.
[55] Fix | Delete
*
[56] Fix | Delete
* See: https://core.trac.wordpress.org/ticket/45387
[57] Fix | Delete
*
[58] Fix | Delete
* @param {string} value Original string.
[59] Fix | Delete
*
[60] Fix | Delete
* @return {string} Escaped string.
[61] Fix | Delete
*/
[62] Fix | Delete
function __unstableEscapeGreaterThan(value) {
[63] Fix | Delete
return value.replace(/>/g, '>');
[64] Fix | Delete
}
[65] Fix | Delete
[66] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/escape-html/build-module/index.js
[67] Fix | Delete
/**
[68] Fix | Delete
* Internal dependencies
[69] Fix | Delete
*/
[70] Fix | Delete
[71] Fix | Delete
[72] Fix | Delete
/**
[73] Fix | Delete
* Regular expression matching invalid attribute names.
[74] Fix | Delete
*
[75] Fix | Delete
* "Attribute names must consist of one or more characters other than controls,
[76] Fix | Delete
* U+0020 SPACE, U+0022 ("), U+0027 ('), U+003E (>), U+002F (/), U+003D (=),
[77] Fix | Delete
* and noncharacters."
[78] Fix | Delete
*
[79] Fix | Delete
* @see https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
[80] Fix | Delete
*
[81] Fix | Delete
* @type {RegExp}
[82] Fix | Delete
*/
[83] Fix | Delete
const REGEXP_INVALID_ATTRIBUTE_NAME = /[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;
[84] Fix | Delete
[85] Fix | Delete
/**
[86] Fix | Delete
* Returns a string with ampersands escaped. Note that this is an imperfect
[87] Fix | Delete
* implementation, where only ampersands which do not appear as a pattern of
[88] Fix | Delete
* named, decimal, or hexadecimal character references are escaped. Invalid
[89] Fix | Delete
* named references (i.e. ambiguous ampersand) are still permitted.
[90] Fix | Delete
*
[91] Fix | Delete
* @see https://w3c.github.io/html/syntax.html#character-references
[92] Fix | Delete
* @see https://w3c.github.io/html/syntax.html#ambiguous-ampersand
[93] Fix | Delete
* @see https://w3c.github.io/html/syntax.html#named-character-references
[94] Fix | Delete
*
[95] Fix | Delete
* @param {string} value Original string.
[96] Fix | Delete
*
[97] Fix | Delete
* @return {string} Escaped string.
[98] Fix | Delete
*/
[99] Fix | Delete
function escapeAmpersand(value) {
[100] Fix | Delete
return value.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi, '&');
[101] Fix | Delete
}
[102] Fix | Delete
[103] Fix | Delete
/**
[104] Fix | Delete
* Returns a string with quotation marks replaced.
[105] Fix | Delete
*
[106] Fix | Delete
* @param {string} value Original string.
[107] Fix | Delete
*
[108] Fix | Delete
* @return {string} Escaped string.
[109] Fix | Delete
*/
[110] Fix | Delete
function escapeQuotationMark(value) {
[111] Fix | Delete
return value.replace(/"/g, '"');
[112] Fix | Delete
}
[113] Fix | Delete
[114] Fix | Delete
/**
[115] Fix | Delete
* Returns a string with less-than sign replaced.
[116] Fix | Delete
*
[117] Fix | Delete
* @param {string} value Original string.
[118] Fix | Delete
*
[119] Fix | Delete
* @return {string} Escaped string.
[120] Fix | Delete
*/
[121] Fix | Delete
function escapeLessThan(value) {
[122] Fix | Delete
return value.replace(/</g, '&lt;');
[123] Fix | Delete
}
[124] Fix | Delete
[125] Fix | Delete
/**
[126] Fix | Delete
* Returns an escaped attribute value.
[127] Fix | Delete
*
[128] Fix | Delete
* @see https://w3c.github.io/html/syntax.html#elements-attributes
[129] Fix | Delete
*
[130] Fix | Delete
* "[...] the text cannot contain an ambiguous ampersand [...] must not contain
[131] Fix | Delete
* any literal U+0022 QUOTATION MARK characters (")"
[132] Fix | Delete
*
[133] Fix | Delete
* Note we also escape the greater than symbol, as this is used by wptexturize to
[134] Fix | Delete
* split HTML strings. This is a WordPress specific fix
[135] Fix | Delete
*
[136] Fix | Delete
* Note that if a resolution for Trac#45387 comes to fruition, it is no longer
[137] Fix | Delete
* necessary for `__unstableEscapeGreaterThan` to be used.
[138] Fix | Delete
*
[139] Fix | Delete
* See: https://core.trac.wordpress.org/ticket/45387
[140] Fix | Delete
*
[141] Fix | Delete
* @param {string} value Attribute value.
[142] Fix | Delete
*
[143] Fix | Delete
* @return {string} Escaped attribute value.
[144] Fix | Delete
*/
[145] Fix | Delete
function escapeAttribute(value) {
[146] Fix | Delete
return __unstableEscapeGreaterThan(escapeQuotationMark(escapeAmpersand(value)));
[147] Fix | Delete
}
[148] Fix | Delete
[149] Fix | Delete
/**
[150] Fix | Delete
* Returns an escaped HTML element value.
[151] Fix | Delete
*
[152] Fix | Delete
* @see https://w3c.github.io/html/syntax.html#writing-html-documents-elements
[153] Fix | Delete
*
[154] Fix | Delete
* "the text must not contain the character U+003C LESS-THAN SIGN (<) or an
[155] Fix | Delete
* ambiguous ampersand."
[156] Fix | Delete
*
[157] Fix | Delete
* @param {string} value Element value.
[158] Fix | Delete
*
[159] Fix | Delete
* @return {string} Escaped HTML element value.
[160] Fix | Delete
*/
[161] Fix | Delete
function escapeHTML(value) {
[162] Fix | Delete
return escapeLessThan(escapeAmpersand(value));
[163] Fix | Delete
}
[164] Fix | Delete
[165] Fix | Delete
/**
[166] Fix | Delete
* Returns an escaped Editable HTML element value. This is different from
[167] Fix | Delete
* `escapeHTML`, because for editable HTML, ALL ampersands must be escaped in
[168] Fix | Delete
* order to render the content correctly on the page.
[169] Fix | Delete
*
[170] Fix | Delete
* @param {string} value Element value.
[171] Fix | Delete
*
[172] Fix | Delete
* @return {string} Escaped HTML element value.
[173] Fix | Delete
*/
[174] Fix | Delete
function escapeEditableHTML(value) {
[175] Fix | Delete
return escapeLessThan(value.replace(/&/g, '&amp;'));
[176] Fix | Delete
}
[177] Fix | Delete
[178] Fix | Delete
/**
[179] Fix | Delete
* Returns true if the given attribute name is valid, or false otherwise.
[180] Fix | Delete
*
[181] Fix | Delete
* @param {string} name Attribute name to test.
[182] Fix | Delete
*
[183] Fix | Delete
* @return {boolean} Whether attribute is valid.
[184] Fix | Delete
*/
[185] Fix | Delete
function isValidAttributeName(name) {
[186] Fix | Delete
return !REGEXP_INVALID_ATTRIBUTE_NAME.test(name);
[187] Fix | Delete
}
[188] Fix | Delete
[189] Fix | Delete
(window.wp = window.wp || {}).escapeHtml = __webpack_exports__;
[190] Fix | Delete
/******/ })()
[191] Fix | Delete
;
[192] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function