seanbuscay
9/23/2013 - 4:16 PM

function to remove classes on tags. Note will fail if body tag has a class in it. See: http://stackoverflow.com/questions/1170912/strip-al

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);