note 84981 added to function.htmlentities
| From: | paulkievits at hotmail dot com | Date: | Fri, 08 Aug 2008 09:53:17 +0000 |
| Subject: | note 84981 added to function.htmlentities | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143301@lists.php.net to get a copy of this message | ||
A little correction to my previous message (much to my own embarrassed). The function should be as
follows:
<?php
function htmlizeArray(&$txtArray) {
if (is_array($txtArray)) {
foreach ($txtArray as $key => &$val) {
htmlizeArray($val);
}
}
else {
$txtArray = htmlentities($txtArray);
}
}
?>
----
Server IP: 83.137.20.135
Probable Submitter: 80.95.164.246
----
Manual Page -- http://www.php.net/manual/en/function.htmlentities.php
Edit -- https://master.php.net/note/edit/84981
Del: integrated -- https://master.php.net/note/delete/84981/integrated
Del: useless -- https://master.php.net/note/delete/84981/useless
Del: bad code -- https://master.php.net/note/delete/84981/bad+code
Del: spam -- https://master.php.net/note/delete/84981/spam
Del: non-english -- https://master.php.net/note/delete/84981/non-english
Del: in docs -- https://master.php.net/note/delete/84981/in+docs
Del: other reasons-- https://master.php.net/note/delete/84981
Reject -- https://master.php.net/note/reject/84981
Search -- https://master.php.net/manage/user-notes.php