--TEST--
escape types
--TEMPLATE--
1. autoescape 'html' |escape('js')
{% autoescape 'html' %}
{% endautoescape %}
2. autoescape 'html' |escape('js')
{% autoescape 'html' %}
{% endautoescape %}
3. autoescape 'js' |escape('js')
{% autoescape 'js' %}
{% endautoescape %}
4. no escape
{% autoescape false %}
{% endautoescape %}
5. |escape('js')|escape('html')
{% autoescape false %}
{% endautoescape %}
6. autoescape 'html' |escape('js')|escape('html')
{% autoescape 'html' %}
{% endautoescape %}
--DATA--
return array('msg' => "<>\n'\"")
--EXPECT--
1. autoescape 'html' |escape('js')
2. autoescape 'html' |escape('js')
3. autoescape 'js' |escape('js')
4. no escape
5. |escape('js')|escape('html')
6. autoescape 'html' |escape('js')|escape('html')