Answers for "how to replace all double quotes in javascript"

0

js replace single quote with doubel quote

//Removing all the single quotes from a string. 
var outputstr= inputstring. replace(/'/g,'');

//Replacing all the single quotes with double quote in a string. 
var outputstr= inputstring.replace(/'/g,'"');
Posted by: Guest on July-22-2021
0

javascript replace doublequote with empty string

const anyStr = 'Friend ... "OK" ... foo'
const formattedString = anyStr.replace(/["]/g, "\\"")
Posted by: Guest on June-19-2020

Code answers related to "how to replace all double quotes in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language