Created
September 23, 2013 16:16
-
-
Save seanbuscay/6672988 to your computer and use it in GitHub Desktop.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$html=preg_replace('/class=".*?"/', '', $html); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment