Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[TwigBundle] Invalid escaping strategy "name" #20244

Closed
@JMLamodiere

Description

@JMLamodiere

Since #20224 , I have this error, for instance when displaying the profiler :

Invalid escaping strategy "name" (valid ones: html, js, url, css, html_attr) in "@WebProfiler/Profiler/results.html.twig" at line 1.

Seems to be related to the configuration key autoescape in Configuration.php which default has switched from filename to name .

A workaround is to manually set it back to filename in the project config :

twig:
    autoescape: 'filename'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions