PHP Class Neos\FluidAdaptor\ViewHelpers\Format\Nl2brViewHelper

See also: http://www.php.net/manual/en/function.nl2br.php = Examples = {text_with_linebreaks} text with line breaks replaced by
{text_with_linebreaks -> f:format.nl2br()} text with line breaks replaced by
Inheritance: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
Show file Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$escapeOutput boolean

Public Methods

Method Description
render ( string $value = null ) : string Replaces newline characters by HTML line breaks.
renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string Applies nl2br() on the specified value.

Method Details

render() public method

Replaces newline characters by HTML line breaks.
public render ( string $value = null ) : string
$value string string to format
return string the altered string.

renderStatic() public static method

Applies nl2br() on the specified value.
public static renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string
$arguments array
$renderChildrenClosure Closure
$renderingContext TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface
return string

Property Details

$escapeOutput protected property

protected bool $escapeOutput
return boolean