title: Remove all inline styles using BeautifulSoup
body: <p>I'm doing some HTML cleaning with BeautifulSoup. Noob to both Python &amp; BeautifulSoup. I've got  tags being removed correctly as follows, based on an answer I found elsewhere on Stackoverflow:</p>
  
  <pre><code>[s.extract() for s in soup('script')]
  </code></pre>
  
  <p>But how to remove inline styles? For instance the following:</p>
  
  <pre><code>&lt;p class="author" id="author_id" name="author_name" style="color:red;"&gt;Text&lt;/p&gt;
  &lt;img class="some_image" href="somewhere.com"&gt;
  </code></pre>
  
  <p>Should become:</p>
  
  <pre><code>&lt;p&gt;Text&lt;/p&gt;
  &lt;img href="somewhere.com"&gt;
  </code></pre>
  
  <p>How to delete the inline class, id, name &amp; style attributes of all elements? </p>
  
  <p>Answers to other similar questions I could find all mentioned using a CSS parser to handle this, rather than BeautifulSoup, but as the task is simply to remove rather than manipulate the attributes, and is a blanket rule for all tags, I was hoping to find a way to do it all within BeautifulSoup.</p>