title: Strip HTML tags to get strings in python
body: <p>I tried to get some strings from an HTML file with BeautifulSoup and everytime I work with it I get partial results.</p>
  
  <p>I want to get the strings in every li element/tag. So far I've been able to get everything in ul like this.</p>
  
  <pre><code>#!/usr/bin/python
  from bs4 import BeautifulSoup
  page = open("page.html")
  soup = BeautifulSoup(page)
  source = soup.select(".sidebar li")
  </code></pre>
  
  <p>And what I get is this:</p>
  
  <pre><code>[&lt;li class="first"&gt;
          Def Leppard -  Make Love Like A Man&lt;span&gt;Live&lt;/span&gt; &lt;/li&gt;, &lt;li&gt;
          Inxs - Never Tear Us Apart        &lt;/li&gt;, &lt;li&gt;
          Gary Moore - Over The Hills And Far Away        &lt;/li&gt;, &lt;li&gt;
          Linkin Park -  Numb        &lt;/li&gt;, &lt;li&gt;
          Vita De Vie -  Basul Si Cu Toba Mare        &lt;/li&gt;, &lt;li&gt;
          Nazareth - Love Hurts        &lt;/li&gt;, &lt;li&gt;
          U2 - I Still Haven't Found What I'm L        &lt;/li&gt;, &lt;li&gt;
          Blink 182 -  All The Small Things        &lt;/li&gt;, &lt;li&gt;
          Scorpions -  Wind Of Change        &lt;/li&gt;, &lt;li&gt;
          Iggy Pop - The Passenger        &lt;/li&gt;]
  </code></pre>
  
  <p>I want to get only the strings from this.</p>