Hi,
We’re setting up a number of templates for use in post-purchase flows. Some of these templates have conditional statements within the markup that determine what text to show. Here is an example:
{% if person|lookup:'hs_cust_id' > 0 %}
<p>SOME MARKUP FOR PPL WITH THAT CUSTOM FIELD</p>
{% else %}
<p>Default markup</p>
{% endif %}
See that > above? That’s supposed to read ‘{% if person|lookup:'hs_cust_id' > 0 %}’ but every time I (or someone else on the team) makes a change to the template, it auto-escapes it to > .
This happens whether it’s me editing the source code, or someone else using the rich text editor.
Tried to workaround by changing to: {% if person|lookup:'hs_cust_id' >= 1 %}...but you can see what it did to >=.
I’m going to rewrite the template by using the show/hide logic on the ‘Display’ tab for the section, as that doesn’t get auto-formatted, but could this be raised as an issue?
Many thanks,
Gareth