Skip to main content

Command Palette

Search for a command to run...

DOM Sanitize and Iframe Angular

Published
1 min read
S

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';
89 views

More from this blog

H

hashcodehub

271 posts

Consistent, Passionate and Organized :)