diff --git a/library/Icinga/Web/View/helpers/string.php b/library/Icinga/Web/View/helpers/string.php index 07ff558f8..09a891d35 100644 --- a/library/Icinga/Web/View/helpers/string.php +++ b/library/Icinga/Web/View/helpers/string.php @@ -10,5 +10,5 @@ $this->addHelperFunction('ellipsis', function ($string, $maxLength, $ellipsis = }); $this->addHelperFunction('nl2br', function ($string) { - return str_replace(array('\r\n', '\r', '\n'), '
', $string); + return nl2br(str_replace(array('\r\n', '\r', '\n'), '
', $string), false); });