PageSourceSearch

https://www.scopelux.com/wp-includes/js/dist/html-entities.js?ver=a976ff3a0f00bc2999a3

js scopelux.com collected 2026-10-02 14:55:06 UTC 1,756 bytes, 48 lines download raw bytes

1(function() {
2"use strict";
3var wp;
4(wp ||= {}).htmlEntities = (() => {
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  // packages/html-entities/build-module/index.mjs
24  var index_exports = {};
25  __export(index_exports, {
26    decodeEntities: () => decodeEntities
27  });
28  var _decodeTextArea;
29  function decodeEntities(html) {
30    if ("string" !== typeof html || -1 === html.indexOf("&")) {
31      return html;
32    }
33    if (void 0 === _decodeTextArea) {
34      if (document.implementation && document.implementation.createHTMLDocument) {
35        _decodeTextArea = document.implementation.createHTMLDocument("").createElement("textarea");
36      } else {
37        _decodeTextArea = document.createElement("textarea");
38      }
39    }
40    _decodeTextArea.innerHTML = html;
41    const decoded = _decodeTextArea.textContent ?? "";
42    _decodeTextArea.innerHTML = "";
43    return decoded;
44  }
45  return __toCommonJS(index_exports);
46})();
47(window.wp ||= {}).htmlEntities = wp.htmlEntities;
48})();

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.