Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JS ignoring accents

// How to normalize a string in JS
// Source : https://stackoverflow.com/a/37511463

str.normalize("NFD").replace(/p{Diacritic}/gu, "")
//  input: crème brûlée
// output: creme brulee
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #JS #ignoring #accents
ADD COMMENT
Topic
Name
2+4 =