title: How to strip all tags except br in re.compile python?
body: <p>I have a code as below which strips all tags:</p>
  
  <pre><code>import re
  
  def cleanhtml(raw_html):
      cleanr = re.compile('&lt;.*?&gt;')
      cleantext = re.sub(cleanr, '', raw_html)
      return cleantext
  
  payload = '&lt;a href="asdasda.htm"&gt;I am inside&lt;/a&gt;&lt;br/&gt;&lt;p&gt;Tagsssss&lt;/p&gt;'
  print cleanhtml(payload)
  </code></pre>
  
  <p>How to ignore <code>&lt;br&gt;</code> tags and just remove all the other tags? This code append all lines together.</p>