Modified guessDefaultEscapingStrategy to not escape txt templates

Useful for plaintext emails.
This commit is contained in:
Marek Štípek 2013-11-25 17:41:28 +01:00 committed by Fabien Potencier
parent 9b99f094a5
commit 9f35368847

View File

@ -57,6 +57,10 @@ class TwigEngine extends BaseEngine implements EngineInterface
if ('js' === $format) {
return 'js';
}
if ('txt' === $format) {
return false;
}
return 'html';
}