Adding fix for Ticket #804

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3113 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2006-06-15 14:44:16 +00:00
parent e0edd33ebd
commit 3d4d5e4388

View file

@ -548,6 +548,12 @@
* @return string
*/
function h($text) {
if (is_array($text)) {
foreach ($text as $key => $val) {
$text[$key] = h($val);
}
return $text;
}
return htmlspecialchars($text);
}
/**