title: How to get HTML representation of a child element in BeautifulSoup?
body: <p>Assuming my HTML is:</p>
  
  <pre><code>&lt;html&gt;&lt;body&gt;&lt;span&gt;This is my text&lt;/span&gt;&lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>How do I get a string representation of what's contained inside , i.e:</p>
  
  <pre><code>&lt;span&gt;This is my text&lt;/span&gt;
  </code></pre>