PHP Class Neos\FluidAdaptor\ViewHelpers\Format\HtmlentitiesDecodeViewHelper

See also: http://www.php.net/html_entity_decode = Examples = {text} Text with & " < > replaced by unescaped entities (html_entity_decode applied). {text -> f:format.htmlentitiesDecode(encoding: 'ISO-8859-1')} Text with & " < > replaced by unescaped entities (html_entity_decode applied).
Inheritance: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
Show file Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$escapeChildren boolean
$escapeOutput boolean Disable the output escaping interceptor so that the result is not htmlspecialchar'd

Public Methods

Method Description
render ( string $value = null, boolean $keepQuotes = false, string $encoding = 'UTF-8' ) : string Converts all HTML entities to their applicable characters as needed using PHPs html_entity_decode() function.
renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string Applies html_entity_decode() on the specified value.

Method Details

render() public method

Converts all HTML entities to their applicable characters as needed using PHPs html_entity_decode() function.
See also: http://www.php.net/html_entity_decode
public render ( string $value = null, boolean $keepQuotes = false, string $encoding = 'UTF-8' ) : string
$value string string to format
$keepQuotes boolean if TRUE, single and double quotes won't be replaced (sets ENT_NOQUOTES flag)
$encoding string
return string the altered string

renderStatic() public static method

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

$escapeChildren protected property

protected bool $escapeChildren
return boolean

$escapeOutput protected property

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