Add personalized HTML to email template

  • 27 February 2024
  • 4 replies
  • 54 views

Badge

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!


4 replies

Userlevel 3
Badge +7

Hello @FelixPreis 

Try doing this

{{ ATTRIBUTE | escape}}

Badge

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 🙏

Userlevel 7
Badge +36

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

Userlevel 7
Badge +60

Hi there @FelixPreis

 

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

 

-Taylor 

Reply