php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6696 htmlentities does not encode apostrophe
Submitted: 2000-09-12 20:54 UTC Modified: 2000-09-13 02:01 UTC
From: jon+php-dev at unequivocal dot co dot uk Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0 Latest CVS (12/09/2000) OS: N/A
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jon+php-dev at unequivocal dot co dot uk
New email:
PHP Version: OS:

 

 [2000-09-12 20:54 UTC] jon+php-dev at unequivocal dot co dot uk
We can play this game all day, guys.

I complain htmlspecialchars does not encode apostrophe, I'm told to use htmlentities instead. htmlentities doesn't do it. The arguments claimed against htmlspecialchars do not hold for htmlentities.

If you just close this without a good reason, you are quite blatantly doing so simply because I opened it, not because you think the function should not be changed. It's not big, and it's not clever ;-).

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-12 20:58 UTC] eschmid@php.net
No comment!
 [2000-09-12 22:42 UTC] derick@php.net
I'll have a look at it sometime.
 [2000-09-13 02:01 UTC] rasmus@php.net
Fixed in CVS
 [2004-05-03 07:12 UTC] theblkking at hotmail dot com
Where can I find this fix?
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jun 03 08:01:25 2025 UTC