Sanitise URL

You may need to trust a URL first, otherwise the DomSanitizer will remove it (see the docs).


url = sanitizer.bypassSecurityTrustUrl('data:image/jpeg;base64,' + image)

Then you can use that url and bind it:

.

Leave a Reply

Your email address will not be published. Required fields are marked *