Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sanitizing user input javascript

    function sanitizeString(str) {
        str = str.replace(/[^a-z0-9áéíóúñü .,_-]/gim, " ");
        return str.trim();
    }
 
PREVIOUS NEXT
Tagged: #sanitizing #user #input #javascript
ADD COMMENT
Topic
Name
3+7 =