note 10085 added to htmlspecialchars
| From: | juliusm at online dot no | Date: | Tue, 12 Dec 2000 20:16:24 +0000 |
| Subject: | note 10085 added to htmlspecialchars | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8650@lists.php.net to get a copy of this message | ||
I have experienced some problems with this function when writing a sentance to a database, the
funtion will parse the '&' in for example '"' (after the function
has already parsed "), returning '"'!
This can easily be fixed when printing the content back out on the screen:
$print_sentance = ereg_replace('&', '&',
$row["sentance"]);
http://www.php.net/manual/function.htmlspecialchars.php