Decode html entities too in cli mode.
authorJan Schneider <jan@horde.org>
Sun, 14 Feb 2010 16:16:19 +0000 (17:16 +0100)
committerJan Schneider <jan@horde.org>
Sun, 14 Feb 2010 22:24:05 +0000 (23:24 +0100)
framework/Core/lib/Horde.php

index ba9cb93..dff62eb 100644 (file)
@@ -251,7 +251,7 @@ class Horde
         }
 
         if ($cli) {
-            echo strip_tags(str_replace(array('<br />', '<p>', '</p>', '<h1>', '</h1>', '<h3>', '</h3>'), "\n", $errortext));
+            echo html_entity_decode(strip_tags(str_replace(array('<br />', '<p>', '</p>', '<h1>', '</h1>', '<h3>', '</h3>'), "\n", $errortext)));
         } else {
             echo <<< HTML
 <html>