PHP Classes

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

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/Twig/test/Twig/Tests/Fixtures/tags/autoescape/with_filters_arguments.test   Download  
File: libs/Twig/test/Twig/Tests/Fixtures/tags/autoescape/with_filters_arguments.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: 481 bytes
 

Contents

Class file image Download
--TEST-- "autoescape" tag do not applies escaping on filter arguments --TEMPLATE-- {% autoescape 'html' %} {{ var|nl2br("<br />") }} {{ var|nl2br("<br />"|escape) }} {{ var|nl2br(sep) }} {{ var|nl2br(sep|raw) }} {{ var|nl2br(sep|escape) }} {% endautoescape %} --DATA-- return array('var' => "<Fabien>\nTwig", 'sep' => '<br />') --EXPECT-- &lt;Fabien&gt;<br /> Twig &lt;Fabien&gt;&lt;br /&gt; Twig &lt;Fabien&gt;<br /> Twig &lt;Fabien&gt;<br /> Twig &lt;Fabien&gt;&lt;br /&gt; Twig