You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm working on an MR in gitlab for migrating some of the mailers to use premailer for html emails but I'm having an issue where premailer is entity encoding some of my stylesheet rules when I inline them.
I've tried this with several premailer-rails versions, including the latest release 1.10.3.
There's some stylesheet rules that I need to inline in the header of the html email (particularly using the @media tag that seems not properly supported by premailer). One of them includes a direct descendant rule, and premailer is entity-encoding it to > in the inlined style, even if I tell premailer to ignore it:
Hello, I'm working on an MR in gitlab for migrating some of the mailers to use premailer for html emails but I'm having an issue where premailer is entity encoding some of my stylesheet rules when I inline them.
I've tried this with several premailer-rails versions, including the latest release 1.10.3.
There's some stylesheet rules that I need to inline in the header of the html email (particularly using the
@media
tag that seems not properly supported by premailer). One of them includes a direct descendant rule, and premailer is entity-encoding it to>
in the inlined style, even if I tell premailer to ignore it:mailer_client_specific.css
has a rule like:And this is incorrectly generated by premailer in the final html as:
As soon as I remove premailer processing this works as intended:
You can take a look at our code in https://gitlab.com/gitlab-org/gitlab/merge_requests/17699
Any ideas? is this a bug in premailer or am I doing anything wrong? Thanks!
The inspiration for inlining the stylesheet was taken from:
The text was updated successfully, but these errors were encountered: