T
Typebot12mo ago
doctorai

Inline variable formatting not working with latest update.

Hi, did you by any chance change the way inline variable formatting code is interpreted. It was working fine, till the latest update. I had this code: {{={{MainInfo1}}.replace(/\n/g, '<br><br>').replace(/<strong>(.*?)</strong>/gi, '$1')=}} It was working fine before. MainInfo1 (for example) contains the following content: "<strong>The symptoms of travel sickness:</strong>\n• Nausea\n• Vomiting\n• Yawning\n• Rapid, deep breathing (hyperventilating)\n• Looking pale\n• Sweating\n• Producing more saliva than usual" which is fetched by a HTTP Get Request. I've shown, in the pictures, when I remove the inline formatting code and just display the variable as it is, what it's showing. And when I add the inline formatting what it's showing (empty).
No description
No description
3 Replies
doctorai
doctoraiOP12mo ago
Note, to represent the \n in json data, the json actually contains \n.
No description
Baptiste
Baptiste12mo ago
Indeed, thank you for the report, it was fixed a few hours ago 🙏
doctorai
doctoraiOP12mo ago
Thank you!

Did you find this page helpful?