mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
dependency upgrades, server and platform module updates, linting wip
This commit is contained in:
@@ -6,10 +6,10 @@ import { DomSanitizer } from '@angular/platform-browser';
|
||||
* only use this when you are sure the URL is indeed safe
|
||||
*/
|
||||
|
||||
@Pipe({name: 'dsSafeUrl'})
|
||||
@Pipe({ name: 'dsSafeUrl' })
|
||||
export class SafeUrlPipe implements PipeTransform {
|
||||
constructor(private domSanitizer: DomSanitizer) {}
|
||||
transform(url) {
|
||||
return this.domSanitizer.bypassSecurityTrustResourceUrl(url);
|
||||
}
|
||||
}
|
||||
constructor(private domSanitizer: DomSanitizer) { }
|
||||
transform(url) {
|
||||
return this.domSanitizer.bypassSecurityTrustResourceUrl(url);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user