I have a variable in JavaScript that has double quotes in it... I need to cleanse the variable so the double quotes are replaced with single quotes... I'm currently using this:

str_artist = str_artist.replace('"', "'");

But it only seems to replace the first double quote with a single quote and none of the others...

Could somebody help me here?