I am retrieving some data from a database, which is returned as HTML like:
<p><strong>Hello</strong></p>
<p><strong> </strong><em>Hello</em></p>
<p><u>Hello</u></p>
<p> </p>
<p><span style="font-size:26px"><strong>Hello</strong></span></p>
<p><span style="font-size:26px"><strong> </strong><em>Hello</em></span></p>
<p><span style="font-size:26px"><u>Hello</u></span></p>
I want to use this data as child elements for an existing div - like so:
document.getElementById("news_id").append(data[0].story);
But it is returning the above data as plain text. How to proceed?