Re: [PHP] Change case of HTML tags

2007-12-20 Thread Arvids Godjuks
In preg_replace case need's to be done like this: $s = preg_replace('/(\<.*\>)/Uem', 'strtolower("$1")', $s);

Re: [PHP] Change case of HTML tags

2007-12-20 Thread Christoph
If you're using PHP5, you can use the tidy functions - http://us2.php.net/tidy. The default settings output html tags in lower-case. For tidy config settings, see http://tidy.sourceforge.net/docs/quickref.html Awesome! This is exactly what I was looking for. Thank you very much! :) thnx, Ch

Re: [PHP] Change case of HTML tags

2007-12-20 Thread Stut
Jim Lucas wrote: Daniel Brown wrote: On Dec 19, 2007 4:10 PM, Christoph Boget <[EMAIL PROTECTED]> wrote: I've been looking through the docs but haven't found an internal function that does what I'm looking for. Perhaps I missed it? Or perhaps someone can point me in the right direction? I'm

Re: [PHP] Change case of HTML tags

2007-12-19 Thread Daniel Brown
On Dec 19, 2007 6:08 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > > Daniel Brown wrote: > > On Dec 19, 2007 4:10 PM, Christoph Boget <[EMAIL PROTECTED]> wrote: > >> I've been looking through the docs but haven't found an internal function > >> that does what I'm looking for. Perhaps I missed it? Or

Re: [PHP] Change case of HTML tags

2007-12-19 Thread Jim Lucas
Daniel Brown wrote: > On Dec 19, 2007 4:10 PM, Christoph Boget <[EMAIL PROTECTED]> wrote: >> I've been looking through the docs but haven't found an internal function >> that does what I'm looking for. Perhaps I missed it? Or perhaps someone >> can point me in the right direction? I'm looking fo

Re: [PHP] Change case of HTML tags

2007-12-19 Thread Daniel Brown
On Dec 19, 2007 4:10 PM, Christoph Boget <[EMAIL PROTECTED]> wrote: > I've been looking through the docs but haven't found an internal function > that does what I'm looking for. Perhaps I missed it? Or perhaps someone > can point me in the right direction? I'm looking for a routine that will > c

Re: [PHP] Change case of HTML tags

2007-12-19 Thread Brady Mitchell
If you're using PHP5, you can use the tidy functions - http://us2.php.net/tidy. The default settings output html tags in lower-case. For tidy config settings, see http://tidy.sourceforge.net/docs/quickref.html Brady On Dec 19, 2007 1:10 PM, Christoph Boget <[EMAIL PROTECTED]> wrote: > I've been l

[PHP] Change case of HTML tags

2007-12-19 Thread Christoph Boget
I've been looking through the docs but haven't found an internal function that does what I'm looking for. Perhaps I missed it? Or perhaps someone can point me in the right direction? I'm looking for a routine that will convert tags to lower case. For example, if I have This is the Page

[PHP] Change case of HTML tags

2007-12-19 Thread Christoph Boget
I've been looking through the docs but haven't found an internal function that does what I'm looking for. Perhaps I missed it? Or perhaps someone can point me in the right direction? I'm looking for a routine that will convert tags to lower case. For example, if I have This is the Page