js normalize accents code example
Example: javascript remove diacritics
//Normalize diacritics characters from originalText
var originalText = "éàçèñ"
var result = originalText.normalize('NFD').replace(/[\u0300-\u036f]/g, "")
console.log(result)
//Normalize diacritics characters from originalText
var originalText = "éàçèñ"
var result = originalText.normalize('NFD').replace(/[\u0300-\u036f]/g, "")
console.log(result)