title: Python beautifulsoup trying to remove html tags 'span'
body: <p>I am trying to remove</p>
  
  <pre><code>[&lt;span class="street-address"&gt;
              510 E Airline Way
             &lt;/span&gt;]
  </code></pre>
  
  <p>and I have used this clean function to remove the one that is in between <code>&lt; &gt;</code></p>
  
  <pre><code>def clean(val):
   if type(val) is not StringType: val = str(val)
   val = re.sub(r'&lt;.*?&gt;', '',val) 
   val = re.sub("\s+" , " ", val)
   return val.strip()
  </code></pre>
  
  <p>and it produces <code>[ 510 E Airline Way ]</code></p>
  
  <p>i am trying to add within "clean" function to remove the char <code>'['</code> and <code>']'</code> and basically i just want to get the <code>"510 E Airline Way"</code>.</p>
  
  <p>anyone has any clue what can i add to <code>clean</code> function?</p>
  
  <p>thank you</p>