Re: &amp

From: Date: Wed, 28 Jan 2004 18:35:58 +0000
Subject: Re: &amp
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-176092@lists.php.net to get a copy of this message
From: "Gerard Samuel" <php-general@trini0.org> > You're absolutely correct. I jumped the gun way too early. > My experience with replacing & with &amp; is that if the content already > contains entity content, for example &nbsp; > Running str_replace will mess them up. Depends how you define "mess them up"... If you want to display &nbsp; literally on a web page, then you need to write &amp;nbsp; in the source. So this may not be messing things up but rather preparing them to be shown on a web page, literally. ---John Holmes...

« previous php.general (#176092) next »