Add JSON support for the file extension escaping strategy

This commit is contained in:
Fabien Potencier
2024-09-11 10:01:02 +02:00
parent 8b421f58aa
commit c616783674
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':