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
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
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.
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):
...
4 matches
Mail list logo