Skip to main content

Add personalized HTML to email template

  • February 27, 2024
  • 4 replies
  • 152 views

Forum|alt.badge.img+1

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!

Did this topic or the replies in the thread help you find an answer to your question?

4 replies

Forum|alt.badge.img+31
  • Partner
  • 252 replies
  • February 28, 2024

Hello @FelixPreis 

Try doing this

{{ ATTRIBUTE | escape}}


Forum|alt.badge.img+1
  • Author
  • Contributor I
  • 1 reply
  • February 28, 2024

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
Forum|alt.badge.img+45
  • Champion & Partner
  • 737 replies
  • March 14, 2024

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


Taylor Tarpley
Community Manager
Forum|alt.badge.img+60
  • Community Manager
  • 2148 replies
  • March 25, 2024

Hi there @FelixPreis

 

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

 

-Taylor