|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-02-10 20:47 UTC] ppaisndud at gmail dot com
[2015-02-11 01:46 UTC] yohgaki@php.net
-Assigned To:
+Assigned To: yohgaki
[2015-02-11 01:46 UTC] yohgaki@php.net
[2018-02-28 22:21 UTC] cmb@php.net
-Package: Unknown/Other Function
+Package: Strings related
[2021-09-15 09:26 UTC] cmb@php.net
-Status: Assigned
+Status: Not a bug
-Assigned To: yohgaki
+Assigned To: cmb
[2021-09-15 09:26 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 14:00:01 2025 UTC |
Description: ------------ ' ' space is   and it's in conversion tables. localhost:Documents yohgaki$ php -r 'print_r(get_html_translation_table(ENT_HTML5));' Array ( ["] => " [&] => & [<] => < [>] => > [ ] => [¡] => ¡ but ' '/" is not converted to /" with htmlentities() at least. " is converted to " with additional ENT_QUOTES flag. However, htmlentities() should convert all chars according to the conversion table. Test script: --------------- php -r 'echo htmlentities("\" <>?&/", ENT_HTML5);' Expected result: ---------------- " <>?&/ Actual result: -------------- " <>?&/