title: How can I remove <br> and </br> tags from items in a list with Python?
body: <p>The Html I'm scraping from: </p>
  
  <pre><code>&lt;tr&gt;
      &lt;td align="left" bgcolor="#ffff99"&gt;
          &lt;font size="2"&gt;
              &lt;a href="some/link.htm"&gt;
                  &lt;b&gt;SomeStuff&lt;/b&gt;
              &lt;/a&gt;
          &lt;/font&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/tr&gt;
      &lt;td align="left" bgcolor="#ffff99"&gt;
          &lt;font size="2"&gt;
              &lt;a href="some/link2.htm"&gt;
                  &lt;b&gt;SomeMoreStuff&lt;/b&gt;
              &lt;/a&gt;
          &lt;/font&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>How I'm scraping the information:</p>
  
  <pre><code>my_list = []
  for i in soup.find_all('a',href=re.compile('some/link')):
      my_list.append(str(i.find('b')))
      my_list.append(i['href'])
  </code></pre>
  
  <p>I need to remove the HTML tags from elements in a list.<br> However, when I create the loop it doesn't save any changes in the list. My list looks something like this:</p>
  
  <pre><code>my_list = ['&lt;br&gt;SomeStuff&lt;/br&gt;','some/link.htm',
             '&lt;br&gt;SomeMoreStuf&lt;/br&gt;', 'some/link2.htm',
             '&lt;br&gt;EvenMoreStuff&lt;/br&gt;', 'some/link3.htm']
  </code></pre>
  
  <p>I've tried this: </p>
  
  <pre><code>for i in my_list:
      i = i.replace('&lt;br&gt;','')
      i = i.replace('&lt;/br&gt;','')
  </code></pre>
  
  <p>And I've tried this:</p>
  
  <pre><code>for i in my_list:
      if '&lt;br&gt;' in i:
          i = i.replace('&lt;br&gt;','')
      if '&lt;/br&gt; in i:    
          i = i.replace('&lt;/br&gt;','')
  </code></pre>
  
  <p>None of this is making any change in the original list. I can print out the corrections I want by not storing the changes in anything:</p>
  
  <pre><code>for i in my_list:
      i.replace('&lt;br&gt;','')
  </code></pre>
  
  <p>However I need the change to be saved in the list.</p>