safe filter does not work in email templates

Hi,

I have a snippet of html stored in a contact property.

I want to use this snippet in a custom e-mail module, so i put this in the module:

{{ contact[html_snip_property]|safe }}

I use the safe filter to indicate that no escaping should be done. However, the escaping is still done, resulting in visible html tags in the output of my e-mail module.

Any suggestions on how to get around this?

thanks

Hi, @PDeT :waving_hand: I do not have a workaround to offer. And I wanted to share this documentation on HubL filters — Please note: you can apply HubL filters to personalization tokens, such as contact and company tokens, on HubSpot CMS and blog pages, but not in emails.

Best,

Jaycee