note 45340 deleted from function.htmlspecialchars by cmb

From: Date: Sun, 27 Oct 2019 09:17:11 +0000
Subject: note 45340 deleted from function.htmlspecialchars by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212849@lists.php.net to get a copy of this message
Note Submitter: thelatesundayshow.com @ nathan (flip it) ---- heres a version of the recursive escape function that takes the array byref rather than byval so saves some resources in case of big arrays function recurse_array_HTML_safe(&$arr) { foreach ($arr as $key => $val) if (is_array($val)) recurse_array_HTML_safe($arr[$key]); else $arr[$key] = htmlspecialchars($val, ENT_QUOTES); }

« previous php.notes (#212849) next »