Jump to content

Word to XHTML Converter


Recommended Posts

Anyone know of a great script that convert word files to valid xhtml? I don't like programs people create, they're usually slow and I can't put any custom stuff in there. A small script in coldfusion or other server side language could do the job a lot faster and could be customized easily. I'm converting large documents with large tables, images, table of contents, graphics...

Link to post
Share on other sites

Can I do batch jobs with this program? Will it automatically clean the html create by MS word?edit: forgot to mention free!

Link to post
Share on other sites
Can I do batch jobs with this program? Will it automatically clean the html create by MS word?edit: forgot to mention free!
No, it won't allow batch jobs. You have to do it all at once. But it will clean it up and also it is free!
Link to post
Share on other sites

HTML-Kit is a nice little program. It's light which is fast and as powerful as dreamweaver with it's plugins. HTML Tidy cleans up the Word HTML but not as much as I need. I'm creating a plugin to do the rest of the work :)

Link to post
Share on other sites

What is the code required to remove all attributes except for colspan and rowspan? I got this:\swidth="?[0-9]+"?|\sheight="?[0-9]+"?|\salign="?.*"?|\svalign="?.*"?|\sstyle=['|"](.|\s)*['|"]|\snowrap|\sclass="?.*"?|\slang="?.*"?|\sxml:lang="?.*"?The only problem I have with this line is the line returns in the style attribute, \s doesn't seem to work.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...