I need to remove single quotation marks from a string, I've already tried string.replace(/\'/g, '')
.replace(/"'"/g, '')
and it does not work, can anyone help me?
I need to remove single quotation marks from a string, I've already tried string.replace(/\'/g, '')
.replace(/"'"/g, '')
and it does not work, can anyone help me?
Just using replace () is enough:
var a = "joao's empreendimento";
var b = a.replace(/'/g, '');
console.log(b);
Example: link