How to store javascript code without it executing?
<p>I'm trying to have adsense javascript code added to a designated div location using jquery but it seems javascript code does not sit well inside a jquery variable. It executes. I've tried using php's htmlentities to encode it for storage, but I can't get it to decode naturally. What should I do? Do I need a javascript based replacement for htmlentities_decode? </p>

<p>This is how far I've gotten, and .html() is not automatically decoding the htmlentities encoded html. </p>

<pre><code>var html_1 = "&lt;?php echo htmlentities('&lt;script&gt;adsense ad code here&lt;/script&gt;'); ?&gt;";
if (html_1)
{
    jQuery('#id_wpt_adblock_1').html(html_1);
}
</code></pre>
