PageSourceSearch

https://southeastasiabackpacker.com/wp-includes/js/dist/html-entities.js?ver=8c6fa5b869dfeadc4af2

js southeastasiabackpacker.com collected 2026-10-02 05:06:20 UTC 1,685 bytes, 45 lines download raw bytes

1"use strict";
2var wp;
3(wp ||= {}).htmlEntities = (() => {
4  var __defProp = Object.defineProperty;
5  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6  var __getOwnPropNames = Object.getOwnPropertyNames;
7  var __hasOwnProp = Object.prototype.hasOwnProperty;
8  var __export = (target, all) => {
9    for (var name in all)
10      __defProp(target, name, { get: all[name], enumerable: true });
11  };
12  var __copyProps = (to, from, except, desc) => {
13    if (from && typeof from === "object" || typeof from === "function") {
14      for (let key of __getOwnPropNames(from))
15        if (!__hasOwnProp.call(to, key) && key !== except)
16          __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17    }
18    return to;
19  };
20  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
22  // packages/html-entities/build-module/index.mjs
23  var index_exports = {};
24  __export(index_exports, {
25    decodeEntities: () => decodeEntities
26  });
27  var _decodeTextArea;
28  function decodeEntities(html) {
29    if ("string" !== typeof html || -1 === html.indexOf("&")) {
30      return html;
31    }
32    if (void 0 === _decodeTextArea) {
33      if (document.implementation && document.implementation.createHTMLDocument) {
34        _decodeTextArea = document.implementation.createHTMLDocument("").createElement("textarea");
35      } else {
36        _decodeTextArea = document.createElement("textarea");
37      }
38    }
39    _decodeTextArea.innerHTML = html;
40    const decoded = _decodeTextArea.textContent ?? "";
41    _decodeTextArea.innerHTML = "";
42    return decoded;
43  }
44  return __toCommonJS(index_exports);
45})();

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.