Hearing no answers, we’ll go with a custom formatter for PHP.
<?php
namespace lib\core;
function formatter_nl2br($val) {
$text = trim($val); // remove the last \n or whitespace character
return nl2br($text); // insert <br /> before \n
}
Oh now I see it …sorry wasn’t much awake - I was thinking of client side formatter…
But you got the server side one - so all good if that is what you need.