The <content> tag is a self destructing tag - at export the tag is removed, but any content it contains remains. It is useful if you need to apply content or a rule to a certain area, and don't have any other tags that can contain a replace="" or rule="" attribute.

<content rule="{% remove_unless navtext1 %}">  |  </content>


Taxi uses the HTML DOM hierarchy to work out where to put content. It does its best to handle non-semantic HTML but sometimes it's necessary to smuggle things through which, from a DOM point of view, do not make any sense at all.

Also some email platforms use coding languages that are similar to Taxi Syntax, so you can use the escape tag to add ESP code to your template and then hide it from Taxi.

That is when the <escape> tag is here to help. Everything between <escape> and </escape> is quarantined by Taxi when the template is uploaded and put back into the document at the last stage of export. The content of the escape tag will not appear in the email preview.

You can use the escape tag to hide HTML that will cause rendering errors if viewed before it is run through your email platform:

<escape>unsubscribe="tracking"value""userid""campaignid"" </escape>

You can also use the escape tag to hide unsightly or long email platform code



This can be wrapped around content which is intended only for the email preview and not the final send. It is, effectively, the reverse of the <escape> tag. Typically it is used with the <escape> tag to give placeholder content for things which would otherwise be invisible. At export the content within <taxi-preview-only>, and the tag itself, is removed.

You can use this in conjunction with the escape tag, for example:

<taxi-preview-only>Unsubscribe link goes here</taxi-preview-only>