RE: [PHP] Cleaning up HTML table structure
| From: | Beau Hartshorne | Date: | Mon, 10 Mar 2003 14:54:48 +0000 |
| Subject: | RE: [PHP] Cleaning up HTML table structure | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138961@lists.php.net to get a copy of this message | ||
Jens,
I would suggest that you try writing a script that keeps track of how
many tags have been opened (look for "<"), versus how many tags have
been closed ("[^>]*/>") on a line-by-line basis. Using that number, you
should be able to indent the code properly.
Let us know what you've got so far.
Beau
> <table ... >
> <tr ... >
> <td ... >
> <table ...>
> <tr ... >
> <td ... >
> ...
> </td>
> <td ... >
> ...
> </td>
> </tr>
> </table>
> </td>
> </tr>
> </table>