mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 10:34:15 +00:00
40416: more tests and docs
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import { DomSanitizer } from '@angular/platform-browser';
|
||||
|
||||
/**
|
||||
* This pipe explicitly escapes the sanitization of a URL,
|
||||
* only use this when you are sure the URL is indeed safe
|
||||
*/
|
||||
|
||||
@Pipe({name: 'dsSafeUrl'})
|
||||
export class SafeUrlPipe implements PipeTransform {
|
||||
constructor(private domSanitizer: DomSanitizer) {}
|
||||
|
Reference in New Issue
Block a user