<p>Given a jQuery result set, how do you convert that back into plain HTML?</p>

<pre><code>&lt;div class="abc"&gt;
    foo &lt;strong&gt;FOO&lt;/strong&gt;
&lt;/div&gt;
&lt;div class="def"&gt;
    bar
&lt;/div&gt;
</code></pre>

<p>--</p>

<pre><code>var $mySet = $('div');
</code></pre>

<p>Given <code>$mySet</code>, how would you go about returning to the plain HTML above?</p>

```
```
var $mySet = $('div');
var html = $mySet.html();
```
```
If you want the element's HTML as well (untested):
```
```
var $mySet = $('div');
var html = $mySet.clone().wrap('<div></div>').html();
```
```
By the way, here $ is part of the variable name.  Javascript doesn't require a $ like in PHP for variable names, but it doesn't hurt to have it.