![]() |
TYPO3
7.6
|
Public Member Functions | |
render ($value=null, $keepQuotes=false, $encoding=null, $doubleEncode=true) | |
Protected Attributes | |
$escapingInterceptorEnabled = false | |
Additional Inherited Members | |
![]() | |
static | renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) |
![]() | |
registerArgument ($name, $type, $description, $required=false, $defaultValue=null) | |
overrideArgument ($name, $type, $description, $required=false, $defaultValue=null) | |
callRenderMethod () | |
getLogger () | |
buildRenderChildrenClosure () | |
hasArgument ($argumentName) | |
![]() | |
static | resolveDefaultEncoding () |
![]() | |
static | $defaultEncoding = null |
Applies htmlentities() escaping to a value
= Examples =
<f:format.htmlentities>{text}</f:format.htmlentities>
<output> Text with & " ' < > * replaced by HTML entities (htmlentities applied). </output>
{text -> f:format.htmlentities(encoding: 'ISO-8859-1')}
<output> Text with & " ' < > * replaced by HTML entities (htmlentities applied). </output>
Definition at line 37 of file HtmlentitiesViewHelper.php.
render | ( | $value = null , |
|
$keepQuotes = false , |
|||
$encoding = null , |
|||
$doubleEncode = true |
|||
) |
Escapes special characters with their escaped counterparts as needed using PHPs htmlentities() function.
string | $value | string to format |
bool | $keepQuotes | if TRUE, single and double quotes won't be replaced (sets ENT_NOQUOTES flag) |
string | $encoding | |
bool | $doubleEncode | If FALSE existing html entities won't be encoded, the default is to convert everything. |
Definition at line 58 of file HtmlentitiesViewHelper.php.
References AbstractViewHelper\renderChildren().
|
protected |
Definition at line 45 of file HtmlentitiesViewHelper.php.