PHP Classes

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

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/strategy.test   Download  
File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/strategy.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: 266 bytes
 

Contents

Class file image Download
--TEST-- "autoescape" tag accepts an escaping strategy --TEMPLATE-- {% autoescape 'js' %}{{ var }}{% endautoescape %} {% autoescape 'html' %}{{ var }}{% endautoescape %} --DATA-- return array('var' => '<br />"') --EXPECT-- \x3Cbr\x20\x2F\x3E\x22 &lt;br /&gt;&quot;