1(function() { 2"use strict"; 3var wp; 4(wp ||= {}).escapeHtml = (() => { 5 var __defProp = Object.defineProperty; 6 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 7 var __getOwnPropNames = Object.getOwnPropertyNames; 8 var __hasOwnProp = Object.prototype.hasOwnProperty; 9 var __export = (target, all) => { 10 for (var name in all) 11 __defProp(target, name, { get: all[name], enumerable: true }); 12 }; 13 var __copyProps = (to, from, except, desc) => { 14 if (from && typeof from === "object" || typeof from === "function") { 15 for (let key of __getOwnPropNames(from)) 16 if (!__hasOwnProp.call(to, key) && key !== except) 17 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 18 } 19 return to; 20 }; 21 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 22 23
23// packages/escape-html/build-module/index.mjs 24 var index_exports = {}; 25 __export(index_exports, { 26 escapeAmpersand: () => escapeAmpersand, 27 escapeAttribute: () => escapeAttribute, 28 escapeEditableHTML: () => escapeEditableHTML, 29 escapeHTML: () => escapeHTML, 30 escapeLessThan: () => escapeLessThan, 31 escapeQuotationMark: () => escapeQuotationMark, 32 isValidAttributeName: () => isValidAttributeName 33 }); 34 35
35// packages/escape-html/build-module/escape-greater.mjs 36 function __unstableEscapeGreaterThan(value) { 37 return value.replace(/>/g, ">"); 38 } 39 40
40// packages/escape-html/build-module/index.mjs 41 var REGEXP_INVALID_ATTRIBUTE_NAME = /[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/; 42 function escapeAmpersand(value) { 43 return value.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi, "&"); 44 } 45 function escapeQuotationMark(value) { 46 return value.replace(/"/g, """); 47 } 48 function escapeLessThan(value) { 49 return value.replace(/</g, "<"); 50 } 51 function escapeAttribute(value) { 52 return __unstableEscapeGreaterThan( 53 escapeLessThan(escapeQuotationMark(escapeAmpersand(value))) 54 ); 55 } 56 function escapeHTML(value) { 57 return escapeLessThan(escapeAmpersand(value)); 58 } 59 function escapeEditableHTML(value) { 60 return escapeLessThan(value.replace(/&/g, "&")); 61 } 62 function isValidAttributeName(name) { 63 return !REGEXP_INVALID_ATTRIBUTE_NAME.test(name); 64 } 65 return __toCommonJS(index_exports); 66})(); 67(window.wp ||= {}).escapeHtml = wp.escapeHtml; 68})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.