title: Python: strip html from text data
body: <p>My question is slightly related to: <a href="https://stackoverflow.com/questions/753052/strip-html-from-strings-in-python">Strip HTML from strings in Python</a></p>
  
  <p>I am looking for a simple way to strip HTML code from text. For example:</p>
  
  <pre><code>string = 'foo &lt;SOME_VALID_HTML_TAG&gt; something &lt;/SOME_VALID_HTML_TAG&gt; bar'
  stripIt(string)
  </code></pre>
  
  <p>Would then yield <code>foo  bar</code>.</p>
  
  <p>Is there any simple tool to achieve this in Python? The HTML code could be nested.</p>