Skip to main content
Contributor I
April 10, 2024
Solved

HTML Tags in Templates via Event Properties

  • April 10, 2024
  • 1 reply
  • 285 views

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: 

 

    This topic has been closed for replies.
    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 

    1 reply

    bluesnapper
    Partner
    Champion & Partner
    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 

    https://bluesnapper.com - Klaviyo Champion '24 & Partner