note 84981 deleted from function.htmlentities by bjori
| From: | bjori@php.net | Date: | Mon, 01 Sep 2008 19:15:48 +0000 |
| Subject: | note 84981 deleted from function.htmlentities by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-144056@lists.php.net to get a copy of this message | ||
Note Submitter: paulkievits at hotmail dot com
----
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);
}
}
?>