I need to select a text part (a array value) from an API response object, and let the text shows as plain text in the DOM. Since the text is a snippet from a web article, it could contain words with hyperlink, I use this code now, it shows each time the hyperlink, which I don't want. How can I let the text only show as plain text, but not the link?
document.querySelector("#text").textContent = "..." + res.sentence_list[0].text + "..";
<section>
<div id="text"></div><br>
<div id="polarity"></div><br>
<div id="agreement"></div><br>
<div id="subjectivity"></div><br>
<div id="confidence"></div><br>
<div id="irony"></div>
</section>