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);
112class_alias(
'Twig_Extension_Escaper',
'Twig\Extension\EscaperExtension',
false);
An exception for terminatinating execution or to throw for unit testing.
getNodeVisitors()
Returns the node visitor instances to add to the existing list.
__construct($defaultStrategy='html')
getDefaultStrategy($name)
Gets the default strategy to use when not defined by the user.
setDefaultStrategy($defaultStrategy)
Sets the default strategy to use when not defined by the user.
getFilters()
Returns a list of filters to add to the existing list.
getTokenParsers()
Returns the token parser instances to add to the existing list.
Twig_NodeVisitor_Escaper implements output escaping.
Represents a template filter.
Marks a section of a template to be escaped or not.
twig_raw_filter($string)
Marks a variable as being safe.