Skip to content

Using inline_css causes emoji's to render defectiveΒ #47783

@parijke

Description

@parijke

Symfony version(s) affected

6.1.5 with twig/cssinliner-extra 3.4.0

Description

{% apply inline_css %}
    <html>
    <head>
        <style>
            p { color: red; }
        </style>
    </head>
    <body>
    <p>πŸ‘‡πŸ‘‡πŸ‘‡πŸ‘‡πŸ‘‡πŸ‘‡πŸ‘‡</p>
    </body>
    </html>
{% endapply %}

renders the hands as Γ°οΏ½οΏ½οΏ½Γ°οΏ½οΏ½οΏ½Γ°οΏ½οΏ½οΏ½Γ°οΏ½οΏ½οΏ½Γ°οΏ½οΏ½οΏ½Γ°οΏ½οΏ½οΏ½Γ°οΏ½οΏ½οΏ½

How to reproduce

Here's a small repo to reproduce. go to /test/bug and see the mail. I use the mailcatcher docker instance to see the sent email

https://github.com/parijke/inlincecss-bug

Possible Solution

No response

Additional Context

No response

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