Skip to content

HTML symbols getting converted to HTML entities. #16

Description

@stephenprovenzano

Normal HTML quotes are being converted into html entities.

Example:

Code in html.handlebars:
<div id="preview_text" style="display:none !important; mso-hide:all; max-height:0; overflow:hidden; ">{% text "preview_text" label="Preview Text <span class="help-text">This will be used as the preview text that displays in some email clients</span>", value="", no_wrapper=True %}</div>

Output in production file:
<div style="display:none!important;mso-hide:all;max-height:0;overflow:hidden">{% text &quot;preview_text&quot; label=&quot;Preview Text <span>This will be used as the preview text that displays in some email clients</span>&quot;, value=&quot;&quot;, no_wrapper=True %}</div>

Can we change the conversion of symbols to only happen within data from content.json? I see this as beneficial, but changing intentional code within the html does not seem safe.

Is there a better solution for this problem?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions