replacing & but not special chars

From: Date: Sun, 27 Jul 2003 07:36:25 +0000
Subject: replacing & but not special chars
Groups: php.general 
Request: Send a blank email to php-general+get-157053@lists.php.net to get a copy of this message
I have some URLs in hrefs that have an &. This does not validate HTM4.01 transitional, so I want to replace them with & So I buffer the output and do a replace, but suppose there is already an & then I get & or if I have anything else like " then I get " Any ideas on how to do this the right way??? Thanks! Shawn

« previous php.general (#157053) next »