Modified guessDefaultEscapingStrategy to not escape txt templates
Useful for plaintext emails.
This commit is contained in:
parent
9b99f094a5
commit
9f35368847
@ -57,6 +57,10 @@ class TwigEngine extends BaseEngine implements EngineInterface
|
||||
if ('js' === $format) {
|
||||
return 'js';
|
||||
}
|
||||
|
||||
if ('txt' === $format) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return 'html';
|
||||
}
|
||||
|
Reference in New Issue
Block a user