DOM Sanitize and Iframe Angular
I love learning about technology and sharing that with others
Need to add more background about the post
constructor(private domsanitize:DomSanitizer) {
this.sanitizedDashboardUrl=this.domsanitize.bypassSecurityTrustResourceUrl(this.currentDashboardUrl);
console.log(this.currentDashboardUrl);
}
<iframe [src]="sanitizedDashboardUrl" height="100%" width="100%" target="_self" ></iframe>
var element=document.getElementById("mainDisplayContent");
element.style.display='none';

