Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v11 here: TYPO3 ELTS.
Format.htmlentitiesDecode ViewHelper <f:format.htmlentitiesDecode>
Applies html_
to a value.
See https://www.php.net/html_entity_decode.
Examples
Default notation
<f:format.htmlentitiesDecode>{text}</f:format.htmlentitiesDecode>
Text containing the following escaped signs: &
"
'
<
>
, will be processed by html_
.
These will result in: &
"
'
<
>
.
Inline notation
{text -> f:format.htmlentitiesDecode(encoding: 'ISO-8859-1')}
Text containing the following escaped signs: &
"
'
<
>
, will be processed by html_
.
These will result in: &
"
'
<
>
.
But encoded as ISO-8859-1.
Source code
Go to the source code of this ViewHelper: HtmlentitiesDecodeViewHelper.php (GitHub).
Arguments
The following arguments are available for <f:
:
value
-
- Type
- string
String to format
keepQuotes
-
- Type
- boolean
If TRUE, single and double quotes won't be replaced (sets ENT_NOQUOTES flag).
encoding
-
- Type
- string
Define the encoding used when converting characters (Default: UTF-8).