Skip to main content
Solved

HTML Tags in Templates via Event Properties

  • April 10, 2024
  • 1 reply
  • 143 views

Forum|alt.badge.img
  • Contributor I

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: 

 

Best answer by bluesnapper

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 

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

1 reply

bluesnapper
Partner
Forum|alt.badge.img+45
  • Champion & Partner
  • 735 replies
  • Answer
  • April 11, 2024

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