R
Rick DeBay
I've got to write some code that takes portions of an HTML document and arranges
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
reuse.
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
(e-mail address removed)
remove INHIBITIONS to reply
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
reuse.
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
(e-mail address removed)
remove INHIBITIONS to reply