//Normalize diacritics characters from originalText var originalText = "éàçèñ" var result = originalText.normalize('NFD').replace(/[u0300-u036f]/g, "") console.log(result)