REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 540 B
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/src/Shared/utils/sanitize.js
Text
Base64
export const sanitizeString = (value) => { if (!value) return ''; const DISALLOWED_TAGS = [ 'script', 'iframe', 'object', 'embed', 'form', 'meta', 'link', 'style', 'svg', ]; const DISALLOWED_PATTERNS = [ `<\\/*\\s*(${DISALLOWED_TAGS.join('|')})\\b[^>]*>`, 'javascript:', 'data:', ]; let sanitizedValue = value.trim(); DISALLOWED_PATTERNS.forEach((pattern) => { const patternRegex = new RegExp(pattern, 'gi'); sanitizedValue = sanitizedValue.replace(patternRegex, ''); }); return sanitizedValue; };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
__tests__
DIR
-
drwxr-xr-x
2026-04-28 02:40:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
convert-to-valid-params.js
2.31 KB
lrw-r--r--
2025-09-25 20:59:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
format-site-questions-for-api.js
929 B
lrw-r--r--
2025-12-17 19:09:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
get-url-parameter.js
680 B
lrw-r--r--
2025-03-13 21:10:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
resize-image.js
1.56 KB
lrw-r--r--
2025-05-12 16:42:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
sanitize.js
540 B
lrw-r--r--
2025-03-13 21:10:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).