Skip to content
Snippets Groups Projects
Commit 487a693f authored by jojohoch's avatar jojohoch
Browse files

Fix return type of SafeResourceHTMLPipe

parent 19c43238
No related branches found
No related tags found
No related merge requests found
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);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment