Stupid tidy won't install on my server. Something about shared objects or some such.
Otherwise, I'd have a plugin that does just that.
Of course, it would require Tidy.
A better option would be to repair that plugin someone posted from Russia (guess: ru was a lang;-). It uses a bunch of regular expressions, and 'cleans'... hrm. maybe Tidy would be better. it's got a LOT of dev time behind it.
At any rate, you could very easily roll your own.
Install Tidy (PHP, java, whatever version) and then have a button that takes the editor content, posts it to a dialog page, which comes back with the Tidy results (warnings, bad tags, etc.) which then pops that back into the editor's Iframe contents (on button click, or automatically).
Advantage to the button has been posted earlier... the user gets to see the stuff that got stripped out BEFORE the post is commited. Comitted. Coometed. Gawd I suck at spelling.
I'll see if I can't finish it up and post. Tidy works fine on my windows php install. Just not my linux box =-(. and I let the littlest hurdles stimy my efforts sometimes. que sir rah ser rah.
If be cleaning styles you mean removing styles then yes, you can remove a style by using the same style again from the style drop down. From my experience it is buggy on Gecko, though (you can loose content this way).
RE: Cleaning styles
Stupid tidy won't install on my server. Something about shared objects or some such.
![;-)](http://b.cksource.com/a/2/img/smilies/icon_e_wink.gif)
Otherwise, I'd have a plugin that does just that.
Of course, it would require Tidy.
A better option would be to repair that plugin someone posted from Russia (guess: ru was a lang;-).
It uses a bunch of regular expressions, and 'cleans'... hrm. maybe Tidy would be better. it's got a LOT of dev time behind it.
At any rate, you could very easily roll your own.
Install Tidy (PHP, java, whatever version) and then have a button that takes the editor content, posts it to a dialog page, which comes back with the Tidy results (warnings, bad tags, etc.) which then pops that back into the editor's Iframe contents (on button click, or automatically).
Advantage to the button has been posted earlier... the user gets to see the stuff that got stripped out BEFORE the post is commited. Comitted. Coometed. Gawd I suck at spelling.
I'll see if I can't finish it up and post. Tidy works fine on my windows php install. Just not my linux box =-(. and I let the littlest hurdles stimy my efforts sometimes. que sir rah ser rah.
Nice idea tho!
RE: Cleaning styles
Arek