title: Can I get the HTML source of an element with Jquery?
body: <p>Rather an odd request, I'm sure, but given a Jquery selector, can I get the raw HTML of an item (and its children) so that I could, for example, put an escaped version of that HTML back on the page?</p>
  
  <p>I'm happy doing the escaping, I've just no idea how to return the HTML from an object.</p>
  
  <p>If there's a simple DOM-standard way of doing this too, I'm just as happy with that.</p>
  
  <hr>
  
  <p>Edit to addresss the "Oh why didn't you just Google that": Google it. You'll get Jquery's <code>.html()</code> and that will give you the inner HTML of an object. For example, let'sa say you have:</p>
  
  <pre><code>&lt;div id="pants"&gt;naughty bits&lt;/div&gt;
  </code></pre>
  
  <p><code>.html()</code> will only return <code>naughty bits</code>. while the output I'm looking for is <code>&lt;div id="pants"&gt;naughty bits&lt;/div&gt;</code></p>