title: get html element as a string
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3614212/jquery-get-html-of-a-whole-element">jQuery, get html of a whole element</a>  </p>
  </blockquote>
  
  
  
  <p>lets say I have:</p>
  
  <pre><code>&lt;span&gt;my span&lt;/span&gt;
  </code></pre>
  
  <p>I would like have html as a string of this span</p>
  
  <p>I use:</p>
  
  <p><code>var mySpan = $('span');</code></p>
  
  <p>what to do with the mySpan var to have as a result string <code>"&lt;span&gt;my span&lt;/span&gt;"</code></p>
  
  <p>thanks for any help</p>