APIs & Integrations

MThoma
Member

Render HTML in Timeline Events

Hi all, 

 

I just created a Timeline Event template in my developer account. My details template looks like this: 

 

### {{ title }}
{{ description }}

 

So, I got two tokens, "title" and "description". Now I would like to add styling to the text in the description using HTML and the API. Thus, I am sending a POST request to https://api.hubapi.com/crm/v3/timeline/events that contains a token item with the property: 

 

"description": "<p>Test note #2 with <span style=\"background-color: #f5c26b;\">color highlighting!</span></p>",

 

However, in the end this is what is rendered. 

Screenshot 2022-09-19 at 13.53.37.png

 

Does anybody know, how to add HTML styling to Timeline Event Detail tokens? 

2 Replies 2
MiaSrebrnjak
Community Manager
Community Manager

Render HTML in Timeline Events

Hi @MThoma,

 

 Thank you for reaching out to the Community!

 

I wanted to tag in a couple of other HubSpot experts to see if they have any advice: 

hi @Renegade@kizus@DarianVretenar, do you have any tips for @MThoma? Thanks! 

 

 

Cheers
Mia, Community Team


Wusstest du, dass es auch eine DACH-Community gibt?
Nimm an regionalen Unterhaltungen teil, indem du deine Spracheinstellungen änderst


Did you know that the Community is available in other languages?
Join regional conversations by
changing your language settings

0 Upvotes
NedyUdombat
Participant

Render HTML in Timeline Events

Hi @MiaSrebrnjak 

Please can you help share what the solution for this is? I am experiencing the same issue too


cc: @Renegade@kizus@DarianVretenar

0 Upvotes