Re: &amp

From: Date: Wed, 28 Jan 2004 14:34:58 +0000
Subject: Re: &amp
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-176047@lists.php.net to get a copy of this message
Stuart wrote:
Diana Castillo wrote:
is there any function that will always replace a "&" with a "&amp" in a string?
$string = str_replace('&', ' ', $string);
Forgot to mention the htmlentities and htmlspecialchars functions, but they do more than you asked for. -- Stuart

« previous php.general (#176047) next »