Format.raw ViewHelper <f:format.raw>
Outputs an argument/value without any escaping. Is normally used to output an ObjectAccessor which should not be escaped, but output as-is.
PAY SPECIAL ATTENTION TO SECURITY HERE (especially Cross Site Scripting), as the output is NOT SANITIZED!
Examples
Child nodes
<f:format.raw>{string}</f:format.raw>
Copied!
Output:
(Content of ``{string}`` without any conversion/escaping)
Copied!
Value attribute
<f:format.raw value="{string}" />
Copied!
Output:
(Content of ``{string}`` without any conversion/escaping)
Copied!
Inline notation
{string -> f:format.raw()}
Copied!
Output:
(Content of ``{string}`` without any conversion/escaping)
Copied!
Source code
Go to the source code of this ViewHelper: Format\RawViewHelper.php (GitHub).
Arguments
The following arguments are available for the format.raw ViewHelper:
value
-
- Type
- mixed
The value to output