Re: function to allow certain html tags

From: Date: Sun, 17 Sep 2000 19:35:48 +0000
Subject: Re: function to allow certain html tags
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-17090@lists.php.net to get a copy of this message
> Hi, > I am looking for a function that allows certain html tags, eg it does an > htmlspecialchars but does NOT change certain tags like bold, ... > I've been looking all over, > I'm sure I can find one somewhere no?? > thanks! > Peter You can do htmlspecialchars(), then go though that output and change all &ltb&gt back to <b>. You can use ereg_replace(), str_replace() or equivilant to do so. -jeremy brand _______________________________________________________________________ GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9 _ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more __

« previous php.general (#17090) next »