Nl2brViewHelper extends AbstractViewHelper uses CompileWithContentArgumentAndRenderStatic
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:format.nl2br>
FinalYes
Wrapper for PHPs :php:`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 />
Table of Contents
Properties
- $escapeOutput : bool
Methods
- initializeArguments() : void
- renderStatic() : string
- resolveContentArgumentName() : string
- Explicitly set argument name to be used as content.
Properties
$escapeOutput
protected
bool
$escapeOutput
= false
Methods
initializeArguments()
public
initializeArguments() : void
renderStatic()
public
static renderStatic(array<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string
Parameters
- $arguments : array<string|int, mixed>
- $renderChildrenClosure : Closure
- $renderingContext : RenderingContextInterface
Return values
stringresolveContentArgumentName()
Explicitly set argument name to be used as content.
public
resolveContentArgumentName() : string