From 4205eb4cc962536c3334018f65e39dfe32bcb083 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Mon, 5 Dec 2016 13:20:02 +0100 Subject: [PATCH] nl2br helper: convert also raw newlines --- library/Icinga/Web/View/helpers/string.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });