Skip to content
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

Inliner breaks template symbols #162

Closed
mlanin opened this issue Oct 14, 2016 · 1 comment
Closed

Inliner breaks template symbols #162

mlanin opened this issue Oct 14, 2016 · 1 comment

Comments

@mlanin
Copy link

mlanin commented Oct 14, 2016

In my project I want to use Inliner to precompile templates and cache them, because it is so much faster not to use it every time I want to send an email.

Problem is, Inliner replaces html entities so that constructions like <?php ?> or {{ }} become broken, especially if this constructions are in attributes like this:

<a href="https://foo.bar/?code={{ $code }}">link</a>

Is it possible to disable this behaviour?

@mlanin mlanin changed the title Inliner breaks php template symbols Inliner breaks template symbols Oct 14, 2016
@mlanin
Copy link
Author

mlanin commented Oct 14, 2016

The only place that becomes broken is hrefs. DomDocument::saveHTML() urlencodes everything in it. So I have to run urldecode after file is converted.

I think this will be enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant