How to remove everything but:
letters, numbers, spaces, exclamation marks, question marks from a string?
It\'s important that the method supports international l
You can try with a regular expression like: var cleaned = someString.replace(/[^a-zA-Z0-9! ]+/g, "");
var cleaned = someString.replace(/[^a-zA-Z0-9! ]+/g, "");