call htmlspecialchars, not htmlentities
authorChuck Hagenbuch <chuck@horde.org>
Sat, 30 May 2009 15:31:13 +0000 (11:31 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Sat, 30 May 2009 15:31:13 +0000 (11:31 -0400)
framework/View/lib/Horde/View/Helper/Text.php

index 1d97c28..6b308b4 100644 (file)
@@ -47,7 +47,7 @@ class Horde_View_Helper_Text extends Horde_View_Helper_Base
      */
     public function h($var)
     {
-        return htmlentities($var, ENT_QUOTES, $this->_view->getEncoding());
+        return htmlspecialchars($var, ENT_QUOTES, $this->_view->getEncoding());
     }
 
     /**