8000 Twig starts escaping '#' in CSS · Issue #14824 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Twig starts escaping '#' in CSS #14824

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
mtijink opened this issue Jun 1, 2015 · 3 comments
Closed

Twig starts escaping '#' in CSS #14824

mtijink opened this issue Jun 1, 2015 · 3 comments

Comments

@mtijink
Copy link
mtijink commented Jun 1, 2015

After the update to symfony 2.7, twig started escaping CSS strings with a '#'. This breaks our website, which uses this to inject theme colors in the CSS.

Example:
{% set test = '#abc' %}
"{{ test }}"

Expected result (Symfony 2.6.7):
"#abc"

Result (Symfony 2.7):
"\23 abc"

@mtijink
Copy link
Author
mtijink commented Jun 1, 2015

This might be related to #13401.

Is there some way to disable this on a filetype basis?

@Tobion
Copy link
Contributor
Tobion commented Jun 2, 2015

Please have a look at the upgrade file when upgrading: #14666

@Tobion Tobion closed this as completed Jun 2, 2015
@mtijink
Copy link
Author
mtijink commented Jun 2, 2015

Sorry, I looked at the wrong upgrade file (the blog post links to the BETA-1 version of the UPGRADE-2.7.md)

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
0