fix: removed delivery parameter from batch feedback

This commit is contained in:
Jannat Patel
2025-01-14 11:29:13 +05:30
parent 2c999e2037
commit 61e41180dd
4 changed files with 35 additions and 48 deletions

View File

@@ -533,3 +533,21 @@ export const validateFile = (file) => {
return __('Only image file is allowed.')
}
}
export const escapeHTML = (text) => {
if (!text) return ''
let escape_html_mapping = {
'&': '&',
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
"'": '&#39;',
'`': '&#x60;',
'=': '&#x3D;',
}
return String(text).replace(
/[&<>"'`=]/g,
(char) => escape_html_mapping[char] || char
)
}