Skip to main content
Contributor I
Feb 27, 2024 3:57 PM UTC

Add personalized HTML to email template

Hi,

 

I’m trying to add a personalized HTML snippet to my email template for every customer.

I collect external data, create a new profile through Zapier, assign an HTML code snippet as a custom property to the profile and I then want to add that HTML code to an email, but every time I try to do that, the HTML code only shows up as plain text and isn’t recognized as HTML.

This is how the email looks for the customer. The code is showing up as plain text

Could you help me out with this?

Thanks!

This topic has been closed for replies.

4 replies

Partner
Feb 28, 2024 4:11 AM UTC

Hello @FelixPreis 

Try doing this

{{ ATTRIBUTE | escape}}

https://theforms.pro
Contributor I
Feb 28, 2024 4:24 PM UTC

Thanks @Maxbuzz, this sounds exactly like what I am looking for. How exactly would I apply this?

Should I simply put it like this:

{{ ATTRIBUTE | escape}} {{ person|lookup:'html-content' }}

Thanks for your help 🙏

bluesnapper
Partner
Champion & Partner
Mar 14, 2024 8:43 AM UTC

Hi @FelixPreis 

Can you expand on what you’re trying to achieve here?

From your example, it looks like you just want to insert ‘Felix - Klaviyo Team’, so I’m wondering why you want to add an HTML snippet to a custom property.

Regards

Andy

https://bluesnapper.com - Klaviyo Champion '24 & Partner
Taylor Tarpley
Community Manager
Community Manager
Mar 25, 2024 6:48 PM UTC

Hi there @FelixPreis, 

 

Would you mind sharing more context to this so that @bluesnapper and I can help you find your solution? 

 

-Taylor