Prevent jQuery() from executing javascript
<p>I am working on some code that uses jQuery to parse data out of html documents from the web.  This decision was made because jQuery, with its awesome ability to select objects on a page, makes it excellent for parsing.</p>

<p>The code works like this (where 'html_string' is the html of a whole web page):</p>

<pre><code>var page = $(html_string);
</code></pre>

<p>The problem I am having is that javascript is being evaluated and executed within the html_string as well.  This results in new threads being formed that in some cases, contain infinite loops that make repeated requests to the server and eventually crash the whole  client-side of application (not the server).</p>

<p>Is there a way to somehow prevent the execution of javascript in this situation.  In this situation, the execution of javascript is an unwanted side effect.</p>

<p>Thanks so much!</p>
