javascript escape string with diacritics problem code example
Example: remove accesnt and simbols and paranthesis from text js
var originalText = "éàçèñ"
var result = originalText.normalize('NFD').replace(/[\u0300-\u036f]/g, "")
console.log(result)