TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
HtmlentitiesDecodeViewHelper Class Reference
Inheritance diagram for HtmlentitiesDecodeViewHelper:
AbstractEncodingViewHelper 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 ()
 

Static Public Member Functions

static renderStatic (array $arguments,\Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 

Protected Attributes

 $escapeChildren = false
 
 $escapeOutput = 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 html_entity_decode() to a value

See also
http://www.php.net/html_entity_decode

= Examples =

<f:format.htmlentitiesDecode>{text}</f:format.htmlentitiesDecode> <output> Text with & " < > replaced by unescaped entities (html_entity_decode applied). </output>

{text -> f:format.htmlentitiesDecode(encoding: 'ISO-8859-1')} <output> Text with & " < > replaced by unescaped entities (html_entity_decode applied). </output>

Definition at line 41 of file HtmlentitiesDecodeViewHelper.php.

Member Function Documentation

initializeArguments ( )

Initialize ViewHelper arguments

Definition at line 60 of file HtmlentitiesDecodeViewHelper.php.

render ( )

Converts all HTML entities to their applicable characters as needed using PHPs html_entity_decode() function.

Returns
string the altered string
See also
http://www.php.net/html_entity_decode

Definition at line 74 of file HtmlentitiesDecodeViewHelper.php.

static renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static
Parameters
array$arguments
\Closure$renderChildrenClosure
RenderingContextInterface$renderingContext
Returns
string

Definition at line 90 of file HtmlentitiesDecodeViewHelper.php.

Member Data Documentation

$escapeChildren = false
protected

Definition at line 48 of file HtmlentitiesDecodeViewHelper.php.

$escapeOutput = false
protected

Definition at line 55 of file HtmlentitiesDecodeViewHelper.php.