|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-06-30 17:57 UTC] rasmus@php.net
-Status: Open
+Status: Bogus
[2010-06-30 17:57 UTC] rasmus@php.net
[2010-06-30 18:22 UTC] tomas at matfyz dot cz
[2010-06-30 18:23 UTC] tomas at matfyz dot cz
-Type: Bug
+Type: Feature/Change Request
[2010-06-30 18:23 UTC] tomas at matfyz dot cz
[2010-06-30 18:53 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 11 17:00:01 2025 UTC |
Description: ------------ The function htmlspecialchars() encodes the & character even if it is part of some html entity like & or — . The workaround is also difficult because the function doesn't allow to disable replacing of the & symbol (I believe it should). PHP version Test script: --------------- echo htmlspecialchars("&"); echo htmlspecialchars("—"); Expected result: ---------------- & — Actual result: -------------- & —