js str replace double apex code example
Example 1: js replace quotes
mystring = mystring.replace(/["']/g, "");
Example 2: javascript replace doublequote with empty string
const anyStr = 'Friend ... "OK" ... foo'
const formattedString = anyStr.replace(/["]/g, "\\"")