php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #19607 Fourth argument for htmlentities()
Submitted: 2002-09-26 01:56 UTC Modified: 2013-07-12 12:59 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: marcel_normann at gmx dot net Assigned:
Status: Wont fix Package: *General Issues
PHP Version: 4CVS-2002-09-26 OS: all
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: marcel_normann at gmx dot net
New email:
PHP Version: OS:

 

 [2002-09-26 01:56 UTC] marcel_normann at gmx dot net
Htmlentities() schould have a fourth argument where you can add chars that will not be translated.

For example <? echo htmlentites("Uml??t?"); ?> will return "Uml&auml;&uuml;t&szlig;", but <? echo htmlentites("Uml??t?", .., .., "??"); ?> will respond "Uml??t&szlig".

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-12 12:59 UTC] maarten@php.net
-Status: Open +Status: Wont fix -Package: Feature/Change Request +Package: *General Issues
 [2013-07-12 12:59 UTC] maarten@php.net
No response in 11 years, so safe to conclude that there's little interest in this feature. Also a very good change issue starter also has moved on (other project / workaround like str_replace whitelisted chars afterwards).
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat May 03 15:01:28 2025 UTC