Decode HTML from database

I load some data from a API and save the response into the database to use it on the page.
One attribute of the data is some HTML (like:

Unsere interdisziplin ä ren…)

I haven’t found a way to add this as HTML to the page, it just inserts the text as you can see it here.

Thanks for the help!
Alex

Hey,
If it’s a text HTML code, you can assign it to a text element as explained here . If not, please send us a screenshot of your collection and a link to the site so that we can have a look.

Best,
Tal.

Hey Tal

Thanks for your answer, I found a workaround, a little script that read the content as text and assigns it back as html. But of course it would be nicer to have it in a direct way.

my workaround script:
let text = $w(‘#text22’).text;
$w(‘#text22’).html = text;

URL: https://madsschou.wixsite.com/mysite
It’s the (not yet) linked dynamic side “Jobs (Title)”

Collection:

The only option to save HTML code to a collection is by saving it as text (which you already did). It seems like the workaround you did is good :slight_smile: