PHP Classes

File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/with_filters_arguments.test

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/with_filters_arguments.test   Download  
File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/with_filters_arguments.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Lego PHP
Blog and shopping cart system
Author: By
Last change:
Date: 7 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