Re: A function in PHP that changes html in a string from <p align=center> to <p align="center"> ?

From: Date: Sun, 15 Aug 2004 07:20:50 +0000
Subject: Re: A function in PHP that changes html in a string from <p align=center> to <p align="center"> ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-193870@lists.php.net to get a copy of this message
Jay Blanchard wrote:
[snip] Is there any function in PHP that changes html in a string from <p align=center> to <p align="center"> ? (e.g. adding the double quotes) [/snip] Nah, but you could write a function to add quotes to attributes of any tag that you would like.
Tidy [ http://tidy.sf.net ] can do this "Tidy inserts quote marks around all attribute values for you. It can also detect when you have forgotten the closing quote mark, although this is something you will have to fix yourself." That from http://www.w3.org/People/Raggett/tidy/

« previous php.general (#193870) next »