Format.nl2br ViewHelper <f:format.nl2br>

Wrapper for PHPs nl2br function. See https://www.php.net/manual/function.nl2br.php.

Examples

Default

<f:format.nl2br>{text_with_linebreaks}</f:format.nl2br>
Copied!

Text with line breaks replaced by <br />

Inline notation

{text_with_linebreaks -> f:format.nl2br()}
Copied!

Text with line breaks replaced by <br />

Source code

Go to the source code of this ViewHelper: Nl2brViewHelper.php (GitHub).

Arguments

The following arguments are available for <f:format.nl2br>:

Name display Type Default
string
value
Type
string

String to format