PHP Classes

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

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

Contents

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