Posted by Brad Everman on 10/13/06 18:34
Say I have an HTML file and want to convert all tags to lowercase, but
leave the attributes alone. For instance:
<SOME TAG ATTRIBUTE="Text THAT may be Upper"></SOME TAG>
Needs to be converted to:
<some tag attribute="Text THAT may be Upper"></some tag>
I can easily convert everything in the tag to lower using '<.*?>' but am
stuck getting PHP to ignore whatever is in quotes. Any ideas?
Thanks.
Navigation:
[Reply to this message]
|