PHP 4.0 Bug #6669: htmlspecialchars misbehaving
| From: | chr at tv2i dot dk | Date: | Tue, 12 Sep 2000 05:59:12 +0000 |
| Subject: | PHP 4.0 Bug #6669: htmlspecialchars misbehaving | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-32943@lists.php.net to get a copy of this message | ||
From: chr@tv2i.dk
Operating system: Linux 2.2.12-20
PHP version: 4.0.2
PHP Bug Type: *Function Specific
Bug description: htmlspecialchars misbehaving
The function call
htmlspecialchars("'")
returns
'
instead of the expected
'
I believe this is a bug rather than a documentation problem, because there is generally do need to
escape ' in HTML.