I am using Angular 5 and I have the following JSON response from a Rest API call. I was able to get the value of the info key inside a variable in my component. I would like to use the HTML inside my view. However, since it's not a valid HTML, I would like to replace \" with " :
{
"id": "1234",
"body": {
"content": {
"info": "<p><div class=\"abc\">xyzdef</div><span class=\"egg\"></span></p>"
}
}
How do I do that? Should I do it in html or typescript?
<p><div class="abc">xyzdef</div><span class="egg"></span></p>, ready to be put into HTML as it is.