title: Python - Remove 'style'-attribute from HTML
body: <p>I have a String in Python, which has some HTML in it. Basically it looks like this.</p>
  
  <pre><code>&gt;&gt;&gt; print someString     # I get someString from the backend
  "&lt;img style='height:50px;' src='somepath'/&gt;"
  </code></pre>
  
  <p>I try to display this HTML in a PDF. Because my PDF generator can't handle the styles-attribute (and no, I can't take another one), I have to remove it from the string. So basically, it should be like that:</p>
  
  <pre><code>&gt;&gt;&gt; print someString     # I get someString from the backend
  "&lt;img style='height:50px;' src='somepath'/&gt;"
  &gt;&gt;&gt; parsedString = someFunction(someString)
  &gt;&gt;&gt; print parsedString
  "&lt;img src='somepath'/&gt;"
  </code></pre>
  
  <p>I guess the best way to do this is with RegEx, but I'm not very keen on it. Can someone help me out?</p>