Open icedevelopment opened 6 years ago
what do you think is the reason to encode whatever is inside of the hrefs?
disregarding this, do you know if any other twig tree node parsing/rule does the same to the hrefs? or it is just this implementation?
I would say don't use it, and use the service and method calls. That is what i do.
According to the issue I mentioned, this encoding is done when calling DomDocument::saveHTML() so it's not related to twig. I'm not sure there is a way to configure DomDocument to leave href values unencoded.
I think there should be a warning in the docs regarding the use of inlinecss tags.
When using the inlinecss twig tag in a template, every href value is apparently url encoded by tijsverkoyen/css-to-inline-styles.
This was mentioned here and is particularly annoying when using special templating tags provided by MailChimp for example.
Example:
will result in the following HTML:
instead of:
How can we avoid this behavior?