Putting quotes into a form field using Javascript
<p>This must be so simple but I'm having a brain freeze.</p>

<p>I have a input field :</p>

<pre><code>&lt;input value=""&gt;
</code></pre>

<p>I want to populate the value using javascript and the var has quotes " in it. For example, when I populate the value on page load with PHP, I'll just swap " for <code>&amp;quot;</code> (or htmlentities, etc). </p>

<p>But when you do the same with js then it just displays <code>&amp;quot;</code> (obviously). </p>

<p>Can I just write out " without escape ?</p>
