f:format.nl2br¶
This ViewHelper is a wrapper for PHPs nl2br function. All CHR(10) linebreaks are translated in <br /> tags.
Properties¶
value¶
- Variable type
- String
- Description
- The string to format.
- Default value
- FALSE
- Mandatory
- No
Example¶
<f:format.nl2br>Text
with
linebreaks</f:format.nl2br>
Result:
Text<br />with<br />linebreaks