I have a problem
I have subscribed to API which returns some HTML content. sometimes it has iframes. however, only the iframe is not loading and instead it is showing as a string in the browser. Please check below code
Component File
this._EmittersService.longDescemitted$.subscribe(obj => {
this.longDesc = obj;
});`
html file
<div class="description-panel" [innerHTML]="longDesc" ></div>
Problem: when the
this.longDesc = "<iframe width="something" height="something" src="something" ></iframe>"
this is displayed as a string, it is not detecting it has an iframe. I NEED the angular to allow it to be rendered as HTML.