Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/node_modules/react-virtualized/node_modules/dom-helpers/cjs/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
exports.__esModule = true;
exports.default = text;
var regExpNbspEntity = / /gi;
var regExpNbspHex = /\xA0/g;
var regExpSpaces = /\s+([^\s])/gm;
/**
* Collects the text content of a given element.
*
* @param node the element
* @param trim whether to remove trailing whitespace chars
* @param singleSpaces whether to convert multiple whitespace chars into a single space character
*/
function text(node, trim, singleSpaces) {
if (trim === void 0) {
trim = true;
}
if (singleSpaces === void 0) {
singleSpaces = true;
}
var elementText = '';
if (node) {
elementText = (node.textContent || '').replace(regExpNbspEntity, ' ').replace(regExpNbspHex, ' ');
if (trim) {
elementText = elementText.trim();
}
if (singleSpaces) {
elementText = elementText.replace(regExpSpaces, ' $1');
}
}
return elementText;
}
module.exports = exports["default"]; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0041 ]-- |