PHP Class Neos\FluidAdaptor\ViewHelpers\Format\HtmlentitiesViewHelper

See also: http://www.php.net/manual/function.htmlentities.php = Examples = {text} Text with & " ' < > * replaced by HTML entities (htmlentities applied). {text -> f:format.htmlentities(encoding: 'ISO-8859-1')} Text with & " ' < > * replaced by HTML entities (htmlentities applied).
Inheritance: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$escapeChildren boolean
$escapeOutput boolean Disable the output escaping interceptor so that the result is not htmlspecialchar'd

Méthodes publiques

Méthode Description
render ( string $value = null, boolean $keepQuotes = false, string $encoding = 'UTF-8', boolean $doubleEncode = true ) : string Escapes special characters with their escaped counterparts as needed using PHPs htmlentities() function.
renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string Applies htmlentities() on the specified value.

Method Details

render() public méthode

Escapes special characters with their escaped counterparts as needed using PHPs htmlentities() function.
See also: http://www.php.net/manual/function.htmlentities.php
public render ( string $value = null, boolean $keepQuotes = false, string $encoding = 'UTF-8', boolean $doubleEncode = true ) : string
$value string string to format
$keepQuotes boolean if TRUE, single and double quotes won't be replaced (sets ENT_NOQUOTES flag)
$encoding string
$doubleEncode boolean If FALSE existing html entities won't be encoded, the default is to convert everything.
Résultat string the altered string

renderStatic() public static méthode

Applies htmlentities() 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

$escapeChildren protected_oe property

protected bool $escapeChildren
Résultat boolean

$escapeOutput protected_oe property

Disable the output escaping interceptor so that the result is not htmlspecialchar'd
protected bool $escapeOutput
Résultat boolean