[PHP] Re: Cleaning up MSWord HTML

2002-11-21 Thread Philip Hallstrom
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




RE: [PHP] Re: Cleaning up MSWord HTML

2002-11-21 Thread Jonathan Rosenberg \(Tabby's Place\)
Microsoft provides a program that will do just that.  I believe that it gets
loaded into Word  you run it from there.

If this will suffice, take a look for it on Microsoft's site.  If you can't
find it, let me know.  I once downloaded it  can probably dig up a URL for
you.

--
JR

 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

--
JR



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php