Display a text field with single quotes
<p>I'm working on an application that requires a text field to fade in with the value being loaded by AJAX. (I'm doing this all with jQuery), here's the code:</p>

<pre><code>$("div#p"+eId+"_content").html("&lt;input class='editPost' type='text' value='"
                               + oldCont
                               + "' id='p"
                               + eId 
                               + "_editBox' /&gt;");
</code></pre>

<p>Unfortunatly, <code>oldCont</code> can contain single quotes, which means the textbox will only contain <code>oldPost</code> up until that single quote. How could I display <code>oldCont</code> without having that problem, but still retaining that single quote (without the \ from escaping it)?</p>
