jQuery variable contains " and '
<p>is it at all possible to replace the <code>'</code> in the postbody variable with <code>&amp;#39;</code> without actually editing the postbody variable contents</p>

<pre><code>var postbody = '&lt;div class="postbody"&gt;this is tom's and bill's post&lt;/div&gt;';
var postid = $('#post-content');
postid.append(postbody);​
</code></pre>

<p><a href="http://jsfiddle.net/3nVrZ/" rel="nofollow">http://jsfiddle.net/3nVrZ/</a></p>
