mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
nl2br helper: convert also raw newlines
This commit is contained in:
parent
d6d0434a5f
commit
4205eb4cc9
@ -10,5 +10,5 @@ $this->addHelperFunction('ellipsis', function ($string, $maxLength, $ellipsis =
|
|||||||
});
|
});
|
||||||
|
|
||||||
$this->addHelperFunction('nl2br', function ($string) {
|
$this->addHelperFunction('nl2br', function ($string) {
|
||||||
return str_replace(array('\r\n', '\r', '\n'), '<br>', $string);
|
return nl2br(str_replace(array('\r\n', '\r', '\n'), '<br>', $string), false);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user