remove single quotes from string javascript code example
Example 1: javascript remove quotes from string
var someStr = 'He said "Hello, my name is Foo"';
console.log(someStr.replace(/['"]+/g, ''));
Example 2: js replace quotes
mystring = mystring.replace(/["']/g, "");