How do I erase all styles from HTML using PHP?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3026096/php-regexp-remove-all-attributes-from-an-html-tag">php regexp: remove all attributes from an html tag</a>  </p>
</blockquote>



<pre><code>$input = '&lt;div style="font-size: 18px; line-height: 20px;" id="whatever"&gt;text&lt;/div&gt;';

// ... some code here, probably regex

$desired_output = '&lt;div id="whatever"&gt;text&lt;/div&gt;';
</code></pre>

<p>How do I do the above using PHP?</p>
