| 1 2 3 4 5 6 7 8 9 10 11 12 13 | 1× 11× 3× 8× | //https://github.com/teppeis/htmlspecialchars
export function escapeFilter(str) {
if (str == null)
return ''
return String(str).
replace(/&/g, '&').
replace(/</g, '<').
replace(/>/g, '>').
replace(/"/g, '"').
replace(/'/g, ''')
}
|