Answers for "sanitise string js"

1

sanitise string js

function sanitizeString(str){
    str = str.replace(/[^a-z0-9áéíóúñü \.,_-]/gim,"");
    return str.trim();
}
Posted by: Guest on April-14-2021
1

sanitise string js

function sanitizeString(str){
    str = str.replace(/[^a-z0-9áéíóúñü \.,_-]/gim,"");
    return str.trim();
}
Posted by: Guest on April-14-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language