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) {
|
||||
return str_replace(array('\r\n', '\r', '\n'), '<br>', $string);
|
||||
return nl2br(str_replace(array('\r\n', '\r', '\n'), '<br>', $string), false);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue