-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prevent escaping mailchimp variables #30
Comments
I think this is a DOMDocument problem. Can you reproduce this issue when you load the HTML into DOMDocument and then have it output HTML again? |
Yes, this is the case. The only solution I found is to run over the output and replace back the escaped data - not good practice... Also... for those who will get the same issue with Mailchimp / Mandrill, they provide an inliner of there own. just set |
Hi there. I have the same suggestion using Mailjet variables like |
You could use preg_replace_callback to replace all those instances with unique strings that are not escaped. Then after inlining replace them back. I've marked it as a feature but I'm not so sure it is within the scope of this project. However I see this is a recurring problem for the intended usecase. When you do get this working using the suggested substitute replace method described I would be happy to either include or link to your solution. |
Hello! Sorry to inject myself into a years-old conversation. Hoping that someone has since solved this? |
Hello there,
it looks like if you use variables inside quotes, they get escaped.
for example:
The result would be:
Any ideas on how to make it ignore specific chars inside quotes?
The text was updated successfully, but these errors were encountered: