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>

Text with line breaks replaced by <br />

Inline notation

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

Text with line breaks replaced by <br />

Arguments

value

DataType

string

Required

false

Description

String to format