core.js:4197 ERROR Error: Uncaught (in promise): Error: Required a safe URL, got a HTML (see http://g.co/ng/security#xss) Error: Required a safe URL, got a HTML (see http://g.co/ng/security#xss) code example
Example: unsafe value used in a resource URL context
transform(url) {
return this.sanitizer.bypassSecurityTrustResourceUrl(url);
}