HTML to TEXT

hi am trying to get the HTML in the repeater shown in the text
the source is coming from a dataset connected to an external database
all fields are shown as text only this field is shown as HTML
the field name at the dataset is “announcementContent”

I tried several codes at the blog but didn’t work if anyone can help as am not that good at coding and want to launch my website please

Best Regrds,

It’s not an html if you have text outside html nodes (and you string have some text that is not wrapped in html tags).
So first of all fix the html.
Then add a text element to the page and do something like:

let myHtml = `<div>your html in here</div>`;
$w.onReady(() => {
$w('#text1').html = myHtml;
})