Skip to main content
Contributor I
February 27, 2024

Add personalized HTML to email template

  • February 27, 2024
  • 4 replies
  • 291 views

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
February 28, 2024

Hello @FelixPreis 

Try doing this

{{ ATTRIBUTE | escape}}

https://theforms.pro
Contributor I
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
Champion & Partner
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

https://bluesnapper.com - Klaviyo Champion '24 & Partner
Taylor Tarpley
Community Manager
Community Manager
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