How can I add a script as code?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/148441/how-can-i-get-the-content-of-the-file-specified-as-the-src-of-a-script-tag">How can I get the content of the file specified as the ‘src’ of a &lt;script&gt; tag?</a>  </p>
</blockquote>



<p>I want to print my "definition" of script, preventing it will be executed.</p>

<p>Tried with :</p>

<pre><code>var scriptWidget = document.createElement('script');
scriptWidget.type = 'text/javascript';
scriptWidget.src = "http://www.mywebsite.it/file.js";

$('#widget-html-codici').html(escape(scriptWidget));
</code></pre>

<p>but it prints <code>%5Bobject%20HTMLScriptElement%5D</code>.
How can I print the code as "code"?</p>
