Answers for "i have quotation and double quotes how to remove double quotes in js"

1

javascript remove quotes from string

var someStr = 'He said "Hello, my name is Foo"';
console.log(someStr.replace(/['"]+/g, ''));
Posted by: Guest on April-21-2020

Code answers related to "i have quotation and double quotes how to remove double quotes in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language