Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Re: Java
- Rick DeBay
November 7, 2003, 2:32 amrate this thread
some of the content in to cells in a table, while preserving all the surrounding
tags and making sure the output is still valid HTML.
While I could simply write the code that searches for the specific items and
repeatedly copy the needed inline tags within the block tags (table cells) that
will contain these items, that's being awfully specific with little chance of
I'd like to come up with a class that can take any block of HTML and reprocess
it in to a table. I'm thinking it could be used to transform lists (DL, OL, UL)
or organize unstructured content given certain rules.
Unfortunately I'm drawing a blank, and can't figure out a good generic, robust,
extensible way to design this. Does anyone have any suggestions?
Thanks, Rick DeBay
remove INHIBITIONS to reply
For the validity requirement, look at http://tidy.sourceforge.net /. There
is a Java version available. It should be possible to pass your end result
though it before sending it off to the browser.
Alternatively, mod_tidy: http://home.snafu.de/tusk/mod_tidy /
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132