mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-06-29 03:05:13 +00:00
Refactor WebComponent and iframing to be mutually exclusive, strip old app
This commit is contained in:
13
src/app/pipes/safe.pipe.ts
Normal file
13
src/app/pipes/safe.pipe.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import { DomSanitizer } from '@angular/platform-browser';
|
||||
|
||||
@Pipe({
|
||||
name: 'safe'
|
||||
})
|
||||
export class SafePipe implements PipeTransform {
|
||||
constructor (private sanitizer: DomSanitizer) {}
|
||||
|
||||
transform(value: string, args?: any): any {
|
||||
return this.sanitizer.bypassSecurityTrustResourceUrl(value);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user