Liquid - replacing BR tags in HTML field

Dawid
Participant V

I know it sounds funky but my field is an HTML field that contains <br /> as new lines. Turns out if I use html: {{value}}, it’s not rendered correctly and I had to use this:

dimension: description {
type: string
sql: ${TABLE}.description ;;
html: {{value | replace: '<br /&gt;', '<br>'}} ;;
}

Seems crazy but I’m guessing there’s a reason for that?

0 0 219
0 REPLIES 0
Top Labels in this Space
Top Solution Authors