emogrifier: Emogrifier turns $ into %24 unexpectedly
I use merge tags in my email bulletins to customize their content, for example to show the name of the recipient, I use the string $[USER:NAME]$ and then I replace it with the name.
If I place the merge tag wrapped in a span or div, there is no inconvenience, but if the merge tag is inside an attribute, let’s say an href, emogrifier turns the ‘$’ symbol to ‘%24’ and ‘[’ to ‘%5B’ respectively.
If my original html is <a href="$[LINK:EVENT]$">LINK</a>
emogrifier turns it into <a href="%24%5BLINK:EVENT%5D%24">LINK</a>
Any advice to avoid this behavior?
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 19 (14 by maintainers)
Commits related to this issue
- [TASK] Stop encoding umlauts and dollar signs This also removes the configuration option preserveEncoding. Fixes #98 Fixes #143 — committed to MyIntervals/emogrifier by oliverklee 9 years ago
- [TASK] Stop encoding umlauts and dollar signs This also removes the configuration option preserveEncoding. Fixes #98 Fixes #143 — committed to MyIntervals/emogrifier by oliverklee 9 years ago
That’s reasonable for cached content, or pages that don’t change - but I’m using it for email where my template remains the same, but it’s different every time its rendered, and it’s likely to be rendered hundreds of thousands of times, so processing the output is very inefficient.