Using jQuery to replace each ' with &apos
<p>I can't seem to find the correct way to take some html being returned from the server, replace each ' with &amp;apos and finally - append the new html to the DOM.</p>

<p>Before the modification, the below works just fine to append the html (not altered)</p>

<pre><code>$(xhtml).find("#inner").appendTo("#appendTD");
</code></pre>

<p>But now that I want to alter the xhtml first, the below doesn't seem to work as expected</p>

<pre><code>var html = $(xhtml).find("#gridFormInformation").find("'").replaceWith("&amp;apos;");
$(html).find("#inner").appendTo("#appendTD");
</code></pre>

<p>As you can see from the above, I want to replace each ' w/ the &amp;apos inside a table element w/ the id #gridFormInformation.  Part of this doesn't work because the html obj i'm trying to append is a jQuery object (not the simple string that I append in the first working example)</p>

<p>Any help?</p>
