Re: PHP htmlentities

by "Rossi Designs" <webmaster(at)rossidesigns.net>

 Date:  Thu, 20 Jul 2000 23:16:04 -0400
 To:  "Sue Bailey" <sue(at)bartandsue.co.uk>,
"hwg-techniques" <hwg-techniques(at)hwg.org>
 References:  co
  todo: View Thread, Original
The manual says it changes all named entities, which unfortuanely % isn't.
AFAIK. try

eregi_replace("%","&#037;",$string);

you may have to escape \ the %

Data Driven Design
P.O. Box 1084
Holly Hill, FL 32125-1084
Phone : (904) - 226-8979
URL : http://www.datadrivendesign.com
URL : http://www.rossidesigns.net
----- Original Message -----
From: "Sue Bailey" <sue(at)bartandsue.co.uk>
To: "hwg-techniques" <hwg-techniques(at)hwg.org>
Sent: Thursday, July 20, 2000 5:08 PM
Subject: PHP htmlentities


> I'm fairly sure the answer to this is no, but is there a similar
> function to htmlentites that would deal with % signs?
>
> TIA
>
> Sue
>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA