Re: [PHP] Cleaning up HTML table structure

2003-03-10 Thread Chris Hayes
PS: If you want a tool which really cleans up HTML you should use HTMLTidy of course. :) http://tidy.sourceforge.net/#source -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cleaning up HTML table structure

2003-03-10 Thread Jens Lehmann
Beau Hartshorne wrote: 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. I need to coun

RE: [PHP] Cleaning up HTML table structure

2003-03-10 Thread Beau Hartshorne
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.

[PHP] Cleaning up HTML table structure

2003-03-09 Thread Jens Lehmann
The following problem seems to be hard to solve: A PHP-Script reads in an HTML-File and removes linebreaks, tabs and not needed spaces. After that the script should reconstruct the table-structure this way (example): ...