format.htmlentitiesDecode ViewHelper <f:format.htmlentitiesDecode>
¶
Applies html_entity_decode()
to a value.
See https://www.php.net/html_entity_decode.
Examples¶
Default notation¶
<f:format.htmlentitiesDecode>{text}</f:format.htmlentitiesDecode>
Copied!
Text containing the following escaped signs: &
"
'
<
>
, will be processed by html_entity_decode()
.
These will result in: &
"
'
<
>
.
Inline notation¶
{text -> f:format.htmlentitiesDecode(encoding: 'ISO-8859-1')}
Copied!
Text containing the following escaped signs: &
"
'
<
>
, will be processed by html_entity_decode()
.
These will result in: &
"
'
<
>
.
But encoded as ISO-8859-1.
Arguments¶
value¶
- DataType
- string
- Required
- false
- Description
- String to format
keepQuotes¶
- DataType
- mixed
- Required
- false
- Description
- If TRUE, single and double quotes won't be replaced (sets ENT_NOQUOTES flag).
encoding¶
- DataType
- string
- Required
- false
- Description
- Define the encoding used when converting characters (Default: UTF-8).