|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-08-19 23:56 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 22:00:02 2025 UTC |
Description: ------------ As I understand it htmlspecialchars_decode is the inverse of htmlspecialchars. The bug is that not all characters are inverted properly. Thanks, Michael Reproduce code: --------------- <?php echo "\n".htmlspecialchars_decode(htmlspecialchars("'",ENT_QUOTES)); echo "\n".htmlspecialchars_decode(htmlspecialchars('"',ENT_QUOTES)); ?> Expected result: ---------------- ' " Actual result: -------------- ' "