PHP Classes

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

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

Contents

Class file image Download
--TEST-- "autoescape" tag applies escaping after calling functions --TEMPLATE-- autoescape false {% autoescape false %} safe_br {{ safe_br() }} unsafe_br {{ unsafe_br() }} {% endautoescape %} autoescape 'html' {% autoescape 'html' %} safe_br {{ safe_br() }} unsafe_br {{ unsafe_br() }} unsafe_br()|raw {{ (unsafe_br())|raw }} safe_br()|escape {{ (safe_br())|escape }} safe_br()|raw {{ (safe_br())|raw }} unsafe_br()|escape {{ (unsafe_br())|escape }} {% endautoescape %} autoescape js {% autoescape 'js' %} safe_br {{ safe_br() }} {% endautoescape %} --DATA-- return array() --EXPECT-- autoescape false safe_br <br /> unsafe_br <br /> autoescape 'html' safe_br <br /> unsafe_br &lt;br /&gt; unsafe_br()|raw <br /> safe_br()|escape &lt;br /&gt; safe_br()|raw <br /> unsafe_br()|escape &lt;br /&gt; autoescape js safe_br \x3Cbr\x20\x2F\x3E