note 127225 added to function.htmlspecialchars
| From: | DanielKlein at main dot php dot net | Date: | Wed, 06 Jul 2022 11:16:45 +0000 |
| Subject: | note 127225 added to function.htmlspecialchars | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-218904@lists.php.net to get a copy of this message | ||
Because the documentation says
int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401
you would think that ENT_HTML401 is important. But as the notes mention, ENT_HTML401 is the default
if you don't specify the doc type. This is because ENT_HTML401 === 0. So
int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401
is exactly equivalent to
int $flags = ENT_QUOTES | ENT_SUBSTITUTE
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.12.131 (proxied: 175.36.56.27)
----
Manual Page -- https://php.net/manual/en/function.htmlspecialchars.php
Edit -- https://main.php.net/note/edit/127225
Del: integrated -- https://main.php.net/note/delete/127225/integrated
Del: useless -- https://main.php.net/note/delete/127225/useless
Del: bad code -- https://main.php.net/note/delete/127225/bad+code
Del: spam -- https://main.php.net/note/delete/127225/spam
Del: non-english -- https://main.php.net/note/delete/127225/non-english
Del: in docs -- https://main.php.net/note/delete/127225/in+docs
Del: other reasons-- https://main.php.net/note/delete/127225
Reject -- https://main.php.net/note/reject/127225
Search -- https://main.php.net/manage/user-notes.php