\Twig_TokenParser_AutoEscape
Marks a section of a template to be escaped or not.
<pre>
{% autoescape true %}
Everything will be automatically escaped in this block
{% endautoescape %}
{% autoescape false %}
Everything will be outputed as is in this block
{% endautoescape %}
{% autoescape true js %}
Everything will be automatically escaped in this block
using the js escaping strategy
{% endautoescape %}
</pre>
Synopsis
class Twig_TokenParser_AutoEscape
extends Twig_TokenParser
{
- // Inherited members from Twig_TokenParser
- protected Twig_Parser $parser;
- // methods
- public Twig_NodeInterface parse()
- public void decideBlockEnd()
- public string getTag()
- // Inherited methods from Twig_TokenParser
- public void setParser()
Hierarchy
Extends
Members
protected
- $parser — Twig_Parser
Methods
public
- decideBlockEnd()
- getTag() — Gets the tag name associated with this token parser.
- parse() — Parses a token and returns a node.
Inherited from Twig_TokenParser
public
- setParser() — Sets the parser associated with this token parser