-
Notifications
You must be signed in to change notification settings - Fork 979
Closed
Description
Describe the bug
HTML minification breaks if there is a <
in a <mj-raw>
section.
To Reproduce
Steps to reproduce the behavior:
- Create a file with this MJML code:
<mjml>
<mj-body>
<mj-section>
<mj-column>
<mj-raw>
{% if foo < 5 %}
{% endif %}
</mj-raw>
<mj-text>Hello World</mj-text>
</mj-column>
</mj-section>
</mj-body>
</mjml>
- compile using the API:
const output = mjml2html(file.contents.toString(), {
minify: true,
filePath: file.path,
})
- See error:
Error: Parse Error: < 5 %}
Expected behavior
Expected minified HTML to succeed
MJML environment (please complete the following information):
- OS: MacOS 10.14.3
- MJML API Version 4.3.1
Metadata
Metadata
Assignees
Labels
No labels