|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-06-23 09:01 UTC] yohgaki@php.net
Description: ------------ htmlspecialchars/htmlentities only accepts string to be escaped. Accept array and escape all elements when array is passed to them. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 21:00:01 2025 UTC |
> Accept array and escape all elements when array is passed to them Why not just: array_map('htmlspecialchars', array ('&', '>', 'foo'));