Find Html Inside a String Using Jquery
<p>I am not sure how practical this question is , but what i am trying to do is find html inside a string and then append pre tags to it using jquery. let say i have a variable with following string.</p>

<pre><code>var string = "Some normal text &lt;html&gt;&lt;body&gt;&lt;div&gt; This is the html &lt;/div&gt; &lt;/body&gt;&lt;/html&gt;";
</code></pre>

<p>Html inside the string is dynamic and can contain any tags , what i want is to find the starting and ending of html and append,prepend pre tags accordingly.</p>

<p>Thanks</p>
