note 10043 added to htmlentities
| From: | remonb at iname dot com | Date: | Sat, 09 Dec 2000 09:49:00 +0000 |
| Subject: | note 10043 added to htmlentities | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8545@lists.php.net to get a copy of this message | ||
When you're user enters a %(percent)-sign, and you save it in you db with this code :
$Tekst = nl2br(htmlentities(ereg_replace("%","%%",urldecode($Tekst))));
It will work, but not with:
$Tekst = nl2br(htmlentities(urldecode($Tekst)));
Did i mis a functionality for it, or is it a strange feature..
http://www.php.net/manual/function.htmlentities.php