Passing code in a personalization token

I have a multi-text type field that is storing a different piece of code for each of my contacts.
That code is essentially HTML that I would like to drop into my emails that would load a different personalized message.

Problem I am running into is that the code doesn’t render. I’ve tried entering in the personalization token into the source code and also tried loading it into an HTML module… neither is leading to the code rendering. Instead, I get a block of code that shows up in my email.

Is what I’m trying to do feasible?

Hi @DLi4,

Instead of a multi-line text property, can you try a property with the type ‘Rich text’? I’ve created emails using HTML personalization tokens and this property type.

Best regards

You nailed it! This works!
Thank you so much.

I’m trying to get this right too, but no combination seems to be working. I’ve created a Rich text field and added content to it:

I then created a mail and tried to insert this in both a Rich-text block as well as an HTML block:

However, it always just renders out the html in the preview:

So either I’m doing it wrong or you cannot add html into an email.

It turns out that there is a bug - rich text fields work correctly for all normal HubSpot objects, such as contacts. However, they don’t work correctly for custom objects. They output the raw html and there’s no way to get them to render the real output!

HubSpot please fix!