function to remove classes on tags. Note will fail if body tag has a class in it. See: http://stackoverflow.com/questions/1170912/strip-all-classes-from-p-tags
$html=preg_replace('/class=".*?"/', '', $html);