TYPO3  7.6
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
HtmlentitiesDecodeViewHelper Class Reference
Inheritance diagram for HtmlentitiesDecodeViewHelper:
AbstractEncodingViewHelper CompilableInterface AbstractViewHelper

Public Member Functions

 render ($value=null, $keepQuotes=false, $encoding=null)
 
- 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)
 

Static Public Member Functions

static renderStatic (array $arguments,\Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 
- Static Public Member Functions inherited from CompilableInterface
static renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 

Protected Attributes

 $escapingInterceptorEnabled = false
 

Additional Inherited Members

- 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
 

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 39 of file HtmlentitiesDecodeViewHelper.php.

Member Function Documentation

render (   $value = null,
  $keepQuotes = false,
  $encoding = null 
)

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

Parameters
string$valuestring to format
bool$keepQuotesif TRUE, single and double quotes won't be replaced (sets ENT_NOQUOTES flag)
string$encoding
Returns
string the altered string
See Also
http://www.php.net/html_entity_decode

Definition at line 59 of file HtmlentitiesDecodeViewHelper.php.

References AbstractViewHelper\buildRenderChildrenClosure().

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

Definition at line 79 of file HtmlentitiesDecodeViewHelper.php.

References AbstractViewHelper\$renderChildrenClosure.

Member Data Documentation

$escapingInterceptorEnabled = false
protected

Definition at line 47 of file HtmlentitiesDecodeViewHelper.php.