JS заменить единственную цитату на цитату Doubel
//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,'"');
Wide-eyed Fox