Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

sanitise string js

function sanitizeString(str){
    str = str.replace(/[^a-z0-9áéíóúñü .,_-]/gim,"");
    return str.trim();
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript check if value is not empty string 
Javascript :: how to fix cors in angular 
Javascript :: discord.js change bot status 
Javascript :: javascript modal close 
Javascript :: refresh date and time every second angular 
Javascript :: data binding on checkbox angular 
Javascript :: converting bytes into kb js 
Javascript :: dotenv jest 
Javascript :: useHistory is not exported form react-router-dom 
Javascript :: javascript string to int 
Javascript :: node pre gyp error 
Javascript :: localstorage is not defined 
Javascript :: javascript check if all capital letter 
Javascript :: TypeError: React__namespace.useSyncExternalStore is not a function in chakraui 
Javascript :: click a link using jquery 
Javascript :: javascript get unique values from array 
Javascript :: how to check connected devices in react native 
Javascript :: nodefetch of ES modules is not supported. 
Javascript :: capturar el valor de un input con jquery 
Javascript :: requirenativecomponent rnsscreen was not found in the uimanager 
Javascript :: how to check data type of javascript variable 
Javascript :: javascript truncate string 
Javascript :: js get url params 
Javascript :: append to array check if exists javascript 
Javascript :: js replace non a-z 
Javascript :: get ng content element angular 2 
Javascript :: check if an id exists javascript 
Javascript :: random color code javascript 
Javascript :: is(:checked 
Javascript :: get device type using javascript 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =