I don't know of a class that will do it out of the box, but take a look at some of the open source WYSIWYG web editors out there (there's one on source forge i know for sure)... some of them have a "clean html" button.
Not sure how good they are since I didn't really look, but maybe by perusing several of them you could build your own rule sets... On Thu, 21 Nov 2002, Chris Boget wrote: > I've done some searches on Google, PHPClasses.org, etc > for something like what I'm trying to accomplish but have > had little luch. And since I don't want to reinvent the wheel > I thought I'd ask here. > Has anyone come across a piece of code that cleans up > the HTML created by MSWord when you "Save As.." html? > I need to remove all the extra crap added in such as the > styles, etc. > If you can point me in the right direction with regards to where > to get started or where there might be such code, I'd be ever > so appreciative! > > Chris > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php