format.htmlentities¶
Applies htmlentities() escaping to a value
Examples¶
default notation:
<f:format.htmlentities>{text}</f:format.htmlentities>
Output:
Text with & " ' < > * replaced by HTML entities (htmlentities applied).
inline notation:
{text -> f:format.htmlentities(encoding: 'ISO-8859-1')}
Output:
Text with & " ' < > * replaced by HTML entities (htmlentities applied).
Arguments¶
value¶
- DataType
- string
- Required
- true
- Description
- String to format
keepQuotes¶
- DataType
- mixed
- Required
- true
- Description
- If TRUE, single and double quotes won’t be replaced (sets ENT_NOQUOTES flag).
doubleEncode¶
- DataType
- mixed
- Default
- true
- Required
- true
- Description
- If FALSE existing html entities won’t be encoded, the default is to convert everything.