title: Convert a jQuery object and contents to string?
body: <p>I'm grabbing various jquery objects to put into an array and later spit out as HTML.</p>
  
  <p>I'm trying to convert the jQuery object to a text string so it can be spit out as HTML later.</p>
  
  <p>I'm using this technique at the moment:</p>
  
  <pre><code>console.log($myObject.clone().wrap('&lt;div&gt;&lt;/div&gt;').html());
  </code></pre>
  
  <p>However, that only appears to be grabbing the contents of my object.</p>
  
  <p>For example, if $myObject is <code>&lt;h2&gt;My Title&lt;/h2&gt;</code> the above only returns 'My Title' (no H2 tags).</p>
  
  <p>I've also trying using .text() but get the same result.</p>
  
  <p>Is there a way to convert the entire jQuery object into a text string?</p>