Re: tags to lowercase
| From: | Justin French | Date: | Fri, 01 Aug 2003 03:52:25 +0000 |
| Subject: | Re: tags to lowercase | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157873@lists.php.net to get a copy of this message | ||
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 (justin@indent.com.au):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