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
I have an HTML template with Jinja variables in it. I'd like for these Jinja variables to remain after using premailer, so I can cache the premailed version and do variable substitution in a loop.
For variables in hrefs, like <a href="{{ SURVEY_LINK }}" class="btn-primary">Start Survey</a>
Premailer HTML encodes the braces to their HTML-encoded entities: <a href="%7B%7B%20SURVEY_LINK%20%7D%7D" class="btn-primary"...
Likewise, brackets, [ and ] in href quotes are escaped, which is problematic for my use case as well.
I'd like to use premailer on my Jinja email templates but because of this HTML encoding issue I'm not able to.
OrangeDog, jdq22, hackerkid, vnznznz and pirsquare