I have a place on a page where I output text from db into JavaScript. Everything works until I get quotation marks in the text -- that throws JS into a mess.
Now I was able to resolve the issue with single quotes by running the string through this:
$pDesc = str_replace ( "'", "´", $pDesc );
However the same experiment with the double quotes did not yield any results?
$pDesc = str_replace ( '"', "´", $pDesc );
Any suggestions?