I have collected my html elements as product description. But when I fetch the data I cannot render it right away on page load. enter image description here
I have did a simple assign function
<script>
function parseHTML(e){
e.innerHTML = e.innerText
}
</script>
and set it to the page element as
<td onload="parseHTML(this)" data-label="description"><%=item.description%></td>
but it doesn't work like this. Nevertheless it is working with onclick element
<%-outputs the unescaped value into the template in Express.