I have tried the suggestion made in the other solution,using an iframe cause the error… This line shows error
<iframe width="100%" height="300" src="{{item.body}}"></iframe>
Error messege
ERROR Error: Uncaught (in promise): Error: unsafe value used in a resource URL context (see http://g.co/ng/security#xss)
Error: unsafe value used in a resource URL context (see http://g.co/ng/security#xss)
How to set iframe src in Angular without causing error.