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

Skip to content

[TwigBundle] Invalid escaping strategy "name" #20244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JMLamodiere opened this issue Oct 19, 2016 · 2 comments
Closed

[TwigBundle] Invalid escaping strategy "name" #20244

JMLamodiere opened this issue Oct 19, 2016 · 2 comments

Comments

@JMLamodiere
Copy link

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'
@xabbuh
Copy link
Member

xabbuh commented Oct 19, 2016

That commit requires Twig 1.27 which isn't released yet. It looks like you are already using a development version of 1.27 which is not at the latest commit (that provides the needed changes, you need twigphp/Twig@b646e50).

@JMLamodiere
Copy link
Author

Thanks, sorry !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants