2 namespace TYPO3\CMS\Fluid\ViewHelpers\Format;
58 public function render($value = null, $keepQuotes =
false, $encoding = null, $doubleEncode =
true)
60 if ($value === null) {
63 if (!is_string($value)) {
66 if ($encoding === null) {
67 $encoding = self::resolveDefaultEncoding();
69 $flags = $keepQuotes ? ENT_NOQUOTES : ENT_COMPAT;
70 return htmlentities($value, $flags, $encoding, $doubleEncode);