Angular2 Base64 sanitizing unsafe URL value April 17, 2023 by Tarik You would need bypassSecurityTrustResourceUrl(html); instead of bypassSecurityTrustHtml(html);