TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
HtmlentitiesViewHelper Class Reference
Inheritance diagram for HtmlentitiesViewHelper:
AbstractEncodingViewHelper SingletonInterface AbstractViewHelper

Public Member Functions

 initializeArguments ()
 
 render ()
 
- Public Member Functions inherited from AbstractViewHelper
 setRenderingContext (\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 prepareArguments ()
 

Protected Attributes

 $escapeOutput = false
 
 $escapeChildren = false
 
- Protected Attributes inherited from AbstractViewHelper
 $controllerContext
 
 $objectManager
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractViewHelper
 callRenderMethod ()
 
 getLogger ()
 
 registerRenderMethodArguments ()
 
- Static Protected Member Functions inherited from AbstractEncodingViewHelper
static resolveDefaultEncoding ()
 
- Static Protected Attributes inherited from AbstractEncodingViewHelper
static $defaultEncoding = null
 

Detailed Description

Applies htmlentities() escaping to a value

See also
http://www.php.net/manual/function.htmlentities.php

= 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 41 of file HtmlentitiesViewHelper.php.

Member Function Documentation

initializeArguments ( )

Initialize ViewHelper arguments

Returns
void

Definition at line 62 of file HtmlentitiesViewHelper.php.

render ( )

Escapes special characters with their escaped counterparts as needed using PHPs htmlentities() function.

Returns
string the altered string
See also
http://www.php.net/manual/function.htmlentities.php

Definition at line 77 of file HtmlentitiesViewHelper.php.

Member Data Documentation

$escapeChildren = false
protected

Definition at line 55 of file HtmlentitiesViewHelper.php.

$escapeOutput = false
protected

Definition at line 48 of file HtmlentitiesViewHelper.php.