javascript remove quotes from string

47

javascript remove quotes from string -

var someStr = 'He said "Hello, my name is Foo"';
console.log(someStr.replace(/['"]+/g, ''));

Comments

Submit
0 Comments