diff --git a/projects/common/pipes/safe-resource-html.pipe.ts b/projects/common/pipes/safe-resource-html.pipe.ts index f7e63e0fbf8ab81520599c7f84d415feb7cc0de8..e22d8597b8cd28f65b1e16f642416d5de6146d22 100644 --- a/projects/common/pipes/safe-resource-html.pipe.ts +++ b/projects/common/pipes/safe-resource-html.pipe.ts @@ -1,5 +1,5 @@ import { Pipe, PipeTransform } from '@angular/core'; -import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser'; +import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; @Pipe({ name: 'safeResourceHTML' @@ -7,7 +7,7 @@ import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser'; export class SafeResourceHTMLPipe implements PipeTransform { constructor(private sanitizer: DomSanitizer) {} - transform(resourceUrl: string): SafeResourceUrl { - return this.sanitizer.bypassSecurityTrustHtml(resourceUrl); + transform(safeHtml: string): SafeHtml { + return this.sanitizer.bypassSecurityTrustHtml(safeHtml); } }