TYPO3
7.6
|
Public Member Functions | |
render ($value=null, $keepQuotes=false, $encoding=null, $doubleEncode=true) | |
compile ($argumentsVariableName, $renderChildrenClosureVariableName, &$initializationPhpCode,\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode $syntaxTreeNode,\TYPO3\CMS\Fluid\Core\Compiler\TemplateCompiler $templateCompiler) | |
Public Member Functions inherited from CompilableInterface | |
compile ($argumentsVariableName, $renderChildrenClosureVariableName, &$initializationPhpCode,\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode $syntaxTreeNode,\TYPO3\CMS\Fluid\Core\Compiler\TemplateCompiler $templateCompiler) | |
Protected Attributes | |
$escapingInterceptorEnabled = false | |
Additional Inherited Members | |
Static Public Member Functions inherited from AbstractViewHelper | |
static | renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) |
Static Public Member Functions inherited from CompilableInterface | |
static | renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) |
Protected Member Functions inherited from AbstractViewHelper | |
registerArgument ($name, $type, $description, $required=false, $defaultValue=null) | |
overrideArgument ($name, $type, $description, $required=false, $defaultValue=null) | |
callRenderMethod () | |
getLogger () | |
buildRenderChildrenClosure () | |
hasArgument ($argumentName) | |
Static Protected Member Functions inherited from AbstractEncodingViewHelper | |
static | resolveDefaultEncoding () |
Static Protected Attributes inherited from AbstractEncodingViewHelper | |
static | $defaultEncoding = null |
Applies htmlspecialchars() escaping to a value
= Examples =
<f:format.htmlspecialchars>{text}</f:format.htmlspecialchars>
<output> Text with & " ' < > * replaced by HTML entities (htmlspecialchars applied). </output>
{text -> f:format.htmlspecialchars(encoding: 'ISO-8859-1')}
<output> Text with & " ' < > * replaced by HTML entities (htmlspecialchars applied). </output>
Definition at line 37 of file HtmlspecialcharsViewHelper.php.
compile | ( | $argumentsVariableName, | |
$renderChildrenClosureVariableName, | |||
& | $initializationPhpCode, | ||
\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode | $syntaxTreeNode, | ||
\TYPO3\CMS\Fluid\Core\Compiler\TemplateCompiler | $templateCompiler | ||
) |
This ViewHelper is used a lot because it is used by the escape interceptor. Therefore we render it to raw PHP code during compilation
string | $argumentsVariableName | |
string | $renderChildrenClosureVariableName | |
string | $initializationPhpCode | |
\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode | $syntaxTreeNode | |
\TYPO3\CMS\Fluid\Core\Compiler\TemplateCompiler | $templateCompiler |
Definition at line 84 of file HtmlspecialcharsViewHelper.php.
render | ( | $value = null , |
|
$keepQuotes = false , |
|||
$encoding = null , |
|||
$doubleEncode = true |
|||
) |
Escapes special characters with their escaped counterparts as needed using PHPs htmlspecialchars() 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 HtmlspecialcharsViewHelper.php.
References AbstractViewHelper\renderChildren().
|
protected |
Definition at line 45 of file HtmlspecialcharsViewHelper.php.