PHP Classes

File: libs/Twig/test/Twig/Tests/Fixtures/tags/autoescape/basic.test

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/Twig/test/Twig/Tests/Fixtures/tags/autoescape/basic.test   Download  
File: libs/Twig/test/Twig/Tests/Fixtures/tags/autoescape/basic.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 496 bytes
 

Contents

Class file image Download
--TEST-- "autoescape" tag applies escaping on its children --TEMPLATE-- {% autoescape %} {{ var }}<br /> {% endautoescape %} {% autoescape 'html' %} {{ var }}<br /> {% endautoescape %} {% autoescape false %} {{ var }}<br /> {% endautoescape %} {% autoescape true %} {{ var }}<br /> {% endautoescape %} {% autoescape false %} {{ var }}<br /> {% endautoescape %} --DATA-- return array('var' => '<br />') --EXPECT-- &lt;br /&gt;<br /> &lt;br /&gt;<br /> <br /><br /> &lt;br /&gt;<br /> <br /><br />