Encoding Ampersands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello List.

I have variables displaying content from mysql fields.  The contents contains & like "Dogs & Cats"... so naturally the W3C validator chokes on them.

Is there a way to encode so they display properly on the page but the validator is OK with them?


Is the answer as simple as:

urlencode($myvar)

Thanks,
--Rick


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




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux