ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Marks a section of a template to be escaped or not. More...
Public Member Functions | |
parse (Twig_Token $token) | |
Parses a token and returns a node. More... | |
decideBlockEnd (Twig_Token $token) | |
getTag () | |
Gets the tag name associated with this token parser. More... | |
Public Member Functions inherited from Twig_TokenParser | |
setParser (Twig_Parser $parser) | |
Sets the parser associated with this token parser. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Twig_TokenParser | |
$parser | |
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 %}
Definition at line 32 of file AutoEscape.php.
Twig_TokenParser_AutoEscape::decideBlockEnd | ( | Twig_Token | $token | ) |
Definition at line 72 of file AutoEscape.php.
References Twig_Token\test().
Twig_TokenParser_AutoEscape::getTag | ( | ) |
Gets the tag name associated with this token parser.
Implements Twig_TokenParserInterface.
Definition at line 77 of file AutoEscape.php.
Referenced by parse().
Twig_TokenParser_AutoEscape::parse | ( | Twig_Token | $token | ) |
Parses a token and returns a node.
Twig_Error_Syntax |
Implements Twig_TokenParserInterface.
Definition at line 34 of file AutoEscape.php.
References $compat, GuzzleHttp\Psr7\$stream, Twig_Token\BLOCK_END_TYPE, Twig_Token\getLine(), getTag(), and Twig_Token\NAME_TYPE.