Curt,

Thanks for the link -- have downloaded the code, and will do some playing/testing later today -- sounds great!

Everyone else,

That tidy extension seems great, when I move into PHP 5 (a while off I'd guess), and yes, it appears I can install tidy into my own web space (even host said so, and offered to compile it too!), so that may be the other option.

With any luck, I should be able to write some wrappers to "tidy" from within a PHP script.

Thanks to everyone for their help,

Justin


On Thursday, July 31, 2003, at 12:41 PM, Curt Zirzow wrote:


* Thus wrote Justin French ([EMAIL PROTECTED]):
Sounds great, although I doubt my host will install... has anyone
considered such a beast running as a PHP function/class?

Hey justin,


well, i just got done toying around with a little function that can
do almost all of what you want.

With a little regex magic and the nice little function
preg_replace_callback()  I made it almost 100% combatible to html.

It will choke on some badly formated attributes though, thats the
only thing to get fixed.

Here is the code and test:
http://zirzow.dyndns.org/html/php/tests/tags_tolower/preg_replace.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to