showing results for - "sanitizing user input javascript"
Alban
22 Jan 2018
1    function sanitizeString(str) {
2        str = str.replace(/[^a-z0-9áéíóúñü \.,_-]/gim, " ");
3        return str.trim();
4    }