Attention

TYPO3 v9 has reached its end-of-life September 30th, 2021 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.

You can order Extended Long Term Support (ELTS) here: TYPO3 ELTS.

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