-
Notifications
You must be signed in to change notification settings - Fork 981
Open
Labels
Description
Describe the bug
When we use mj-html-attributes and a templating language like EJS inside a compontent, a tag <%= my_variable %> is not preserved as is, but it is rendered as <%= my_variable="" %="" />.
To Reproduce
Steps to reproduce the behavior:
- Copy and paste the following code in the try-it-live tool:
<mjml>
<mj-head>
<mj-html-attributes>
<mj-selector path=".custom div">
<mj-html-attribute name="data-id">42</mj-html-attribute>
</mj-selector>
</mj-html-attributes>
</mj-head>
<mj-body>
<mj-section>
<mj-column>
<mj-text css-class="custom">
Hello <%= world %>
</mj-text>
</mj-column>
</mj-section>
</mj-body>
</mjml>
- See error
Expected behavior
We expect the tag <% ... %> to be rendered as is.
MJML environment
- MJML Version 4.9.3
- MJML try-it-live tool