replace quotes in javascript 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, "\\"")