Skip to content

Twig starts escaping '#' in CSS #14824

Closed
Closed
@mtijink

Description

@mtijink

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions