Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

html table - normalize? one row per multiple internal td cell entries

21 views
Skip to first unread message

okey

unread,
Jul 14, 2009, 7:28:34 PM7/14/09
to
I have to believe this has been done many time before.

We have a well formed html <table> which contains X rows with Y
columns in each. Nice and regular...

Each <td> however contains mutliple chunks of data. Data in these
cells is delimited by a <br />
but could be anything I guess.

We need to take this table and regenerate it so that each data chunk
has it's own row.

For example

<table>
<tr>
<td>item01</td>
<td>item<br />item< br/>item</td>
</tr>

<tr>
<td>item03<br/></td>
<td>item<br /></td>
</tr>

would result in

<table>
<tr>
<td>item01</td>
<td>item</td>
</tr>
<tr>
<td>item01</td>
<td>item</td>
</tr>
<td>item01</td>
<td>item</td>
</tr>
<tr>
<td>item03 .....

... and so on.

We could code this. but this has to be some kind of module (with
normal good module stuff). Is there something out there?

0 new messages