Format.htmlentitiesDecode ViewHelper <f:format.htmlentitiesDecode>
ViewHelper to apply html_ to a value, transforming HTML entity representations back into HTML special characters (like " to ").
Go to the source code of this ViewHelper: Format\HtmlentitiesDecodeViewHelper.php (GitHub).
Table of contents
Examples
Default notation
packages/my_extension/Resources/Private/Templates/Content/Text.fluid.html
<f:format.htmlentitiesDecode>{text}</f:format.htmlentitiesDecode>
Copied!
Text containing the following escaped signs: & " ' < >, will be processed by
html_.
These will result in: & " ' < >.
Inline notation
packages/my_extension/Resources/Private/Templates/Content/Text.fluid.html
{text -> f:format.htmlentitiesDecode(encoding: 'ISO-8859-1')}
Copied!
Text containing the following escaped signs: & " ' < >, will be processed by
html_.
These will result in: & " ' < >.
But encoded as ISO-8859-1.
Arguments of the <f:format.htmlentitiesDecode> ViewHelper
encoding
-
- Type
- string
Define the encoding used when converting characters (Default: UTF-8).
keepQuotes
-
- Type
- bool
- Default
- false
If TRUE, single and double quotes won't be replaced (sets ENT_NOQUOTES flag).
value
-
- Type
- string
string to format