dovetailer icon indicating copy to clipboard operation
dovetailer copied to clipboard

HTML symbols getting converted to HTML entities.

Open stephenprovenzano opened this issue 7 years ago • 1 comments

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?

stephenprovenzano avatar Mar 08 '17 12:03 stephenprovenzano

@stephenprovenzano this is actually a very tricky problem. it will require some thinking to figure out how to support this...

maxlapides avatar Mar 08 '17 18:03 maxlapides