feature #4302 Add JSON support for the file extension escaping strategy (fabpot)

This PR was merged into the 3.x branch.

Discussion
----------

Add JSON support for the file extension escaping strategy

Closes #3657

Commits
-------

c616783674 Add JSON support for the file extension escaping strategy
This commit is contained in:
Fabien Potencier
2024-09-11 10:43:59 +02:00
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1,5 +1,6 @@
# 3.15.0 (2024-XX-XX)
* Add JSON support for the file extension escaping strategy
* Support Markup instances (and any other \Stringable) as dynamic mapping keys
* Deprecate the `sandbox` tag
* Improve the way one can deprecate a Twig callable (use `deprecation_info` instead of the other callable options)
+1
View File
@@ -45,6 +45,7 @@ class FileExtensionEscapingStrategy
switch ($extension) {
case 'js':
case 'json':
return 'js';
case 'css':