title: Removing specific html tags with python
body: <p>I have some HTML tables inside of an HTML cell, like so:</p>
  
  <pre><code>miniTable='&lt;table style="width: 100%%" bgcolor="%s"&gt;
                 &lt;tr&gt;&lt;td&gt;&lt;font color="%s"&gt;&lt;b&gt;%s&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
             &lt;/table&gt;' % ( bgcolor, fontColor, floatNumber)
  
  html += '&lt;td&gt;' + miniTable + '&lt;/td&gt;'
  </code></pre>
  
  <p>Is there a way to remove the HTML tags that pertain to this minitable, and <em>only</em> these html tags?<br />
  I would like to somehow remove these tags:</p>
  
  <pre><code>&lt;table style="width: 100%%" bgcolor="%s"&gt;&lt;tr&gt;&lt;td&gt;&lt;font color="%s"&gt;&lt;b&gt;
  and
  &lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
  </code></pre>
  
  <p>to get this:</p>
  
  <pre><code>floatNumber
  </code></pre>
  
  <p>where <code>floatNumber</code> is the string representation of a floating point number. <em>I don't want any of the other HTML tags to be modified in any way.</em> I was thinking of using string.replace or regex, but I'm stumped.</p>