Solved

HTML Tags in Templates via Event Properties

  • 10 April 2024
  • 1 reply
  • 25 views

Badge
  • Contributor I
  • 0 replies

We are new users… We are passing content to Klavio via Event Properties and using that content in our message templates. This is working well, except that some of our Event Properties contain HTML Tags.

Is there a way to direct the Klavio template to process those tags instead of simply displaying them? 

This is just one simple example: 

 

icon

Best answer by bluesnapper 11 April 2024, 09:21

View original

1 reply

Userlevel 7
Badge +37

Welcome to the community @NCH 

I don’t believe there is a way to get Klaviyo to display that content while respecting the HTML tags unless others here know of a solution.

It’s possible to strip the HTML using |striptags as a parameter at the end of the event variable, but your text would then be unformatted plain text.

Looking at your events, is the information that gets pulled into your HTML message available as individual event variables? Could you build a table or text blocks that pulls in that data so you can format as you want?

Regards

Andy 

Reply