How insert to javascript to document using jquery?
<p>I have a "badly written" simple banner:</p>

<pre><code>...
    &lt;script&gt;
    document.write('banner text')
    &lt;/script&gt;
...
</code></pre>

<p>How to correct insert this banner to document using javascript ?</p>

<p>This code:</p>

<pre><code>&lt;div id="id"&gt;&lt;/div&gt;
$('#id').html('\x3Cscript&gt;document.write("banner text");\x3C/script&gt;')
</code></pre>

<p>replace all text in document ...</p>
