title: Python element tree - extract text from element, stripping tags
body: <p>With ElementTree in Python, how can I extract all the text from a node, stripping any tags in that element and keeping only the text?</p>
  
  <p>For example, say I have the following:</p>
  
  <pre><code>&lt;tag&gt;
    Some &lt;a&gt;example&lt;/a&gt; text
  &lt;/tag&gt;
  </code></pre>
  
  <p>I want to return <code>Some example text</code>. How do I go about doing this? So far, the approaches I've taken have had fairly disastrous outcomes.</p>