JSFiddle - React, Tailwind, and code Playground

JavaScript

var a = "joao's";
var b = a.replace(/'/g, '');
alert(b);