HtmlentitiesDecodeViewHelper extends AbstractEncodingViewHelper

FinalYes

ViewHelper to apply `html_entity_decode()` to a value, transforming HTML entity representations back into HTML special characters (like `"` to `"`).

  <f:format.htmlentitiesDecode>{textWithEntities}</f:format.htmlentitiesDecode>
Tags
see
https://www.php.net/html_entity_decode
see
https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-format-htmlentitiesdecode

Table of Contents

Properties

$defaultEncoding  : string
$escapeChildren  : bool
We accept value and children interchangeably, thus we must disable children escaping.
$escapeOutput  : bool
If we decode, we must not encode again after that.

Methods

getContentArgumentName()  : string
Explicitly set argument name to be used as content.
initializeArguments()  : void
render()  : mixed
Converts all HTML entities to their applicable characters as needed using PHPs html_entity_decode() function.
resolveDefaultEncoding()  : string
Resolve the default encoding. If none is set in Frontend or Backend, uses UTF-8.

Properties

$defaultEncoding

protected static string $defaultEncoding

$escapeChildren

We accept value and children interchangeably, thus we must disable children escaping.

protected bool $escapeChildren = false

$escapeOutput

If we decode, we must not encode again after that.

protected bool $escapeOutput = false

Methods

getContentArgumentName()

Explicitly set argument name to be used as content.

public getContentArgumentName() : string
Return values
string

initializeArguments()

public initializeArguments() : void

resolveDefaultEncoding()

Resolve the default encoding. If none is set in Frontend or Backend, uses UTF-8.

protected static resolveDefaultEncoding() : string
Return values
string

        
On this page

Search results