Possible Duplicate:
php regexp: remove all attributes from an html tag
$input = '<div style="font-size: 18px; line-height: 20px;" id="whatever">text</div>';
// ... some code here, probably regex
$desired_output = '<div id="whatever">text</div>';
How do I do the above using PHP?