Javascript string replace with regex to strip off illegal characters - Stack Overflow

PHOTO EMBED

Wed Sep 23 2020 10:22:32 GMT+0000 (Coordinated Universal Time)

Saved by @rdemo #javascript

var cleanString = dirtyString.replace(/[|&;$%@"<>()+,]/g, "");
content_copyCOPY

https://stackoverflow.com/questions/3780696/javascript-string-replace-with-regex-to-strip-off-illegal-characters