42 new Twig_SimpleFilter(
'raw',
'twig_raw_filter', array(
'is_safe' => array(
'all'))),
58 @trigger_error(
'Using "true" as the default strategy is deprecated since version 1.21. Use "html" instead.', E_USER_DEPRECATED);
64 @trigger_error(
'Using "filename" as the default strategy is deprecated since version 1.27. Use "name" instead.', E_USER_DEPRECATED);
87 if (!is_string($this->defaultStrategy) &&
false !== $this->defaultStrategy) {
88 return call_user_func($this->defaultStrategy,
$name);
112 class_alias(
'Twig_Extension_Escaper',
'Twig\Extension\EscaperExtension',
false);
getFilters()
Returns a list of filters to add to the existing list.
getDefaultStrategy($name)
Gets the default strategy to use when not defined by the user.
Twig_NodeVisitor_Escaper implements output escaping.
Represents a template filter.
getName()
Returns the name of the extension.
twig_raw_filter($string)
Marks a variable as being safe.
getTokenParsers()
Returns the token parser instances to add to the existing list.
getNodeVisitors()
Returns the node visitor instances to add to the existing list.
Marks a section of a template to be escaped or not.
setDefaultStrategy($defaultStrategy)
Sets the default strategy to use when not defined by the user.
__construct($defaultStrategy='html')