UPDATED: After changing the
src="https://stackoverflow.com/questions/39858992/{{cleanURL(activeMedia.URL)}}"
to:
[src]="cleanURL(activeMedia.URL)"
I’m getting: ORIGINAL EXCEPTION: Error: Required a safe ResourceURL, got a URL
which is solved with changing the code within the cleanURL method to:
return this.sanitizer.bypassSecurityTrustResourceUrl(oldURL);
Instead of:
return this.sanitizer.bypassSecurityTrustUrl(oldURL);