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/

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



Reply via email to