40416: more tests and docs

This commit is contained in:
Lotte Hofstede
2017-05-23 10:49:57 +02:00
parent 6aff818dcd
commit b262e066cf
9 changed files with 47 additions and 5 deletions

View File

@@ -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) {}