Added auto-escaper support for functions
authorArnaud Le Blanc <arnaud.lb@gmail.com>
Fri, 24 Dec 2010 16:21:26 +0000 (17:21 +0100)
committerFabien Potencier <fabien.potencier@gmail.com>
Thu, 30 Dec 2010 08:31:08 +0000 (09:31 +0100)
commit3615e9a3860c476b6088e714c3c2c52252cbec22
tree4b3deefb93e7ee6a309ab278452f490a31c3b6e3
parentc225a5bed92616e69b13888e47ca2f99fe26731e
Added auto-escaper support for functions

Functions' output is escaped by default and functions can declare
themselves "safe" using the "is_safe" option.
lib/Twig/NodeVisitor/SafeAnalysis.php
test/Twig/Tests/Fixtures/tags/autoescape/functions.test [new file with mode: 0644]