title: Python code to remove HTML tags from a string
body: <p>I have a text like this:</p>
  
  <pre><code>text = """&lt;div&gt;
  &lt;h1&gt;Title&lt;/h1&gt;
  &lt;p&gt;A long text........ &lt;/p&gt;
  &lt;a href=""&gt; a link &lt;/a&gt;
  &lt;/div&gt;"""
  </code></pre>
  
  <p>using pure Python, with no external module I want to have this:</p>
  
  <pre><code>&gt;&gt;&gt; print remove_tags(text)
  Title A long text..... a link
  </code></pre>
  
  <p>I know I can do it using <strong>lxml.html.fromstring(text).text_content()</strong> but I need to achieve the same in pure Python using builtin or std library for 2.6+</p>
  
  <p>How can I do that?</p>