Formatting Issue Adding Rich Text Custom Field to Custom Card

Hey!

I created a custom card that has the details as

details: profile.c_insuranceTermDescription
? ANSWERS.formatRichText(profile.c_insuranceTermDescription)
: null

Where c_insuranceTermDescription is a custom field of type rich text. However, my answers experience displays the HTML tags that format the text in my custom field

Is there anything else I need to add to my card in order to get the rich text to format properly?

1 Like

It looks like your HTML is being escaped. In the Adding Rich Text unit, you’ll find some helpful instructions to modify your Handlebars template to allow the HTML to render correctly. In short, you’ll want to ensure the details field of your card is surrounded by triple braces {{{ }}}. If you’re using a standard card, you may need to fork the card to add this.

Let me know if this helps!

1 Like

Ah thanks @afarooque! That did the trick. I forgot about those extra steps needed. Adding the triple braces, as well as disabling Show More/Show Less functionality, fixed this.

1 Like