# safe filter does not work in email templates

**URL:** <https://community.hubspot.com/t/safe-filter-does-not-work-in-email-templates/72174>\
**Category:** CMS Development\
**Created:** [January 4, 2023, 11:34am UTC](https://community.hubspot.com/t/safe-filter-does-not-work-in-email-templates/72174 "2023-01-04T11:34:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PDeT](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@PDeT](https://community.hubspot.com/u/PDeT)\
**Post date:** [January 4, 2023, 11:34am UTC](https://community.hubspot.com/t/safe-filter-does-not-work-in-email-templates/72174/1 "2023-01-04T11:34:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 10, 2023, 12:07am UTC](https://community.hubspot.com/t/safe-filter-does-not-work-in-email-templates/72174/2 "2023-01-10T00:07:35Z")

</div>

Hi, @PDeT 👋 I do not have a workaround to offer. And I wanted to share this [documentation on HubL filters](https://developers.hubspot.com/docs/cms/hubl/filters) — **Please note:** you can apply HubL filters to [personalization tokens](https://knowledge.hubspot.com/website-pages/personalize-your-content), such as contact and company tokens, on HubSpot CMS and blog pages, but **not** in emails.

Best,

Jaycee
