Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Striptease act 3

Status
Not open for further replies.

Seecke

IS-IT--Management
Aug 23, 2003
68
US
Hello everyone!

The shortest distance between two points is a straight line, therefore cutting corners and "cheating" works for me!

I have a rather LARGE document that was created in Word and need to convert that document to HTML. Word allows me to "Save As HTML" but it adds a plethora of unwanted tags and code. I would like to strip that code down to its basic HTML elements (i.e. html, head, blah blah, /head, body, blah blah blah, /body, /html), then add my own basic formatting to retain the look and feel of the document.

Anyone out there have any simple ways of accomplishing this task?

Thanks in advance to ALL who read and especially ALL who reply!

Steven E. ncw
 
open the word file, save as a text file. close word.

open the text file in notepad, copy the text.

paste it into a wysiwyg editor like dreamweaver (which hopefully should put in the relevant <p> </p> tags).

set all the <head> stuff, apply styles to the content.

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
WOW!

You guys are awesome!

Thanks for the EXCELLENT tips! They BOTH worked!

I like the txt option the best because it removes even the mso stuff in a heartbeat!

My file is now NAKED as I want it and in the basic layout I needed!

I am in your debt!
Steven E. ncw
 
Try putting the word-generated HTML through HTML tidy at . There's options you can pick (check out the advanced ones) to strip out extraneous tags.

That said, saving it as text and then putting in your own <p> tags etc. is certainly the BEST way of doing it, just not the quickest...

-- Chris Hunt
 
Thank you Chris for the valuable information! I have placed this handy tool in my favorites for future use.


Steven E. ncw
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top