php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #47915 Support apos entity in html_entity_decode
Submitted: 2009-04-07 11:24 UTC Modified: 2010-10-10 21:08 UTC
Votes:16
Avg. Score:4.4 ± 0.9
Reproduced:15 of 15 (100.0%)
Same Version:6 (40.0%)
Same OS:9 (60.0%)
From: spam04 at pornel dot net Assigned: cataphract (profile)
Status: Closed Package: *General Issues
PHP Version: 5.2CVS-2009-04-07 (snap) OS: *
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: spam04 at pornel dot net
New email:
PHP Version: OS:

 

 [2009-04-07 11:24 UTC] spam04 at pornel dot net
Description:
------------
XML/XHTML entity ' is not supported by html_entity_decode().

I understand it's supposed to be for HTML decoding, but it would be nice to extend this function to support XHTML entities as well.


Reproduce code:
---------------
html_entity_decode("'",ENT_QUOTES);

Expected result:
----------------
'

Actual result:
--------------
'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-09 17:30 UTC] cataphract@php.net
-Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: cataphract
 [2010-10-10 21:08 UTC] cataphract@php.net
This has been implemented in trunk in revision #304287.

See http://svn.php.net/viewvc?view=revision&revision=304287
 [2010-10-10 21:08 UTC] cataphract@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 26 07:00:02 2025 UTC