2 namespace TYPO3\CMS\Fluid\ViewHelpers\Format;
59 public function render($value = null, $keepQuotes =
false, $encoding = null)
61 return static::renderStatic(
64 'keepQuotes' => $keepQuotes,
65 'encoding' => $encoding
68 $this->renderingContext
81 $value = $arguments[
'value'];
82 $encoding = $arguments[
'encoding'];
83 $keepQuotes = $arguments[
'keepQuotes'];
85 if ($value === null) {
88 if (!is_string($value)) {
91 if ($encoding === null) {
92 $encoding = self::resolveDefaultEncoding();
94 $flags = $keepQuotes ? ENT_NOQUOTES : ENT_COMPAT;
95 return html_entity_decode($value, $flags, $encoding);