Created
October 16, 2013 07:35
-
-
Save joostvanveen/7004002 to your computer and use it in GitHub Desktop.
Regex for removing all <span>, <font> and <div> tags from a string. Useful if you wish to edit content from a HTML editor in which somebody accidentally pasted text directly from Word :)
This file contains 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
<[\/]?(span|font|div)[^>]*> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment