jQuery string replace very special characters
<p>I have a PHP JSON encoded string like this:-</p>

<p>SAINT JOHN\'S</p>

<p>and I would like to change it to </p>

<p>SAINT JOHN'S in jQuery scripts.</p>

<p>I tried:- </p>

<pre><code>data[i].name.replace("[\']","'");
data[i].name.replace(/\'/g,"'");
</code></pre>

<p>all still give me SAINT JOHN\'S. how can I deal with the special character replacement? </p>
