Skip to content
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

Symfony 2.8 shows raw HTML in Debug Toolbar for SQL #380

Closed
tacman opened this issue Jan 1, 2016 · 1 comment
Closed

Symfony 2.8 shows raw HTML in Debug Toolbar for SQL #380

tacman opened this issue Jan 1, 2016 · 1 comment

Comments

@tacman
Copy link
Contributor

tacman commented Jan 1, 2016

In Symfony 2.8 with Propel 1.7 SQL statements are now showing with the HTML tags, is there a |raw that is missing somewhere? Or a setting I can use?

image

tacman added a commit to tacman/PropelBundle that referenced this issue Jan 8, 2016
If autoescape is on, then the SQL HTML is displayed instead of formatted sql.  This will allow the Symfony debug toolbar to display formatted SQL regardless of the autoescape settings.

propelorm#380
@tacman
Copy link
Contributor Author

tacman commented Jan 8, 2016

This is solved by adding a |raw filter in Collector:propel.html.twig

                    <code>{{ query.sql|format_sql|raw }}</code>

I've added a pull request:

#381

@havvg havvg closed this as completed Jan 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants