mirror of
https://github.com/mempool/mempool.git
synced 2025-02-27 16:46:32 +01:00
12 lines
366 B
TypeScript
12 lines
366 B
TypeScript
|
import { Pipe, PipeTransform } from '@angular/core';
|
||
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
||
|
|
||
|
@Pipe({ name: 'noSanitize' })
|
||
|
export class NoSanitizePipe implements PipeTransform {
|
||
|
constructor(private domSanitizer: DomSanitizer) { }
|
||
|
|
||
|
transform(html: string): SafeHtml {
|
||
|
return this.domSanitizer.bypassSecurityTrustHtml(html);
|
||
|
}
|
||
|
}
|