[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 608
  • Last Modified:

Export MS Word HTML into valid, XHTML table?

We have employees in another department who post data to our website via an online form we'd set up for them.  The form automatically generates basic HTML (paragraph tags, bold tags, italics, etc.).

The employees often want to post long HTML tables that they'd generated in MS Word.  Unfortunately, if we ask these employees to save these as an HTML file, MS Word generates some pretty hideous code and many unnecessary, Microsoft-specific tags.  Usually the ending code is so large that it crashes our online form, since online forms have a maximum byte amount they can pass at any given time (no joke, these tables are often quite huge).

Is there any tool out there that can parse MS Word-generated table data and recreate a table into tight, XHTML format?  We're trying to avoid the time necessary to program our own robust, MS Word HTML parser, since this is such a low priority item (but not so low that the subject of doing this comes up once every year)
0
cacklebunny
Asked:
cacklebunny
  • 2
1 Solution
 
seanpowellCommented:
It won't be perfect, but it will be 90% better...
0
 
webwomanCommented:
Develop a macro, put it in all the normal.dot templates, and show them how to use it. Not only should you be able to format the table, you can convert the quotes, set the bold/italic/etc., and even add styles to the tags.

Then YOU control what gets generated, not MS.
0
 
cacklebunnyAuthor Commented:
Thanks, Sean --at last something that works! :)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now