Package

ViewHelpers

ViewHelper Documentation

format.htmlspecialchars

Applies htmlspecialchars() escaping to a value

= Examples =

<f:format.htmlspecialchars>{text}</f:format.htmlspecialchars> Text with & " ' < > * replaced by HTML entities (htmlspecialchars applied).

{text -> f:format.htmlspecialchars(encoding: 'ISO-8859-1')} Text with & " ' < > * replaced by HTML entities (htmlspecialchars applied).

Arguments

value string

Value to format

keepQuotes boolean

If TRUE quotes will not be replaced (ENT_NOQUOTES)

encoding string

Encoding

doubleEncode boolean

If FALSE html entities will not be encoded

ViewHelper Resources

Schema Resources