Class Twig_TokenParser_AutoEscape

InheritanceTwig_TokenParser_AutoEscape » Twig_TokenParser
ImplementsTwig_TokenParserInterface

Marks a section of a template to be escaped or not.

{% 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 %}

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$parser Twig_Parser Twig_TokenParser

Method Details

decideBlockEnd() public method

public void decideBlockEnd ( Twig_Token $token )
$token
getTag() public method

public void getTag ( )
parse() public method

public void parse ( Twig_Token $token )
$token