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
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$escapeOutput boolean

Méthodes publiques

Méthode 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 méthode

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

renderStatic() public static méthode

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
Résultat string

Property Details

$escapeOutput protected_oe property

protected bool $escapeOutput
Résultat boolean