I'd like a button that will clear all html from the selected text. Could someone please help me with the code? I'm completely stumped on how to create a button that will clear the selected text of any bracketed (<>) html tags.
Thanks!!
Ben
I'd like a button that will clear all html from the selected text. Could someone please help me with the code? I'm completely stumped on how to create a button that will clear the selected text of any bracketed (<>) html tags.
Thanks!!
Ben
Comments
Comment #1
ufku commentedtry this http://ufku.com/drupal/bueditor/contributions/remove-formatting
Comment #2
fpedraza commentedNice.
It would be even nicer if the regex could clean things like:
Comment #3
fpedraza commentedI answer myself: I'm dumb.
Just have to add 'p' and the regex takes care of the rest.
Comment #4
ufku commented