I have a json response
Indicator:true
content:"<a href=somelink target="_blank">Click here to open your message</a>"
I need to convert the value of content
to link. Right now it is in string. how to make it a href
the actual link
Unfortunately the below code isn't working
let content = res.content
var wrapper= document.createElement('div');
wrapper.innerHTML= '<div>'+content+'</div>';
var div2 = wrapper.firstChild;