Skip to content

Commit 98f750c

Browse files
author
Andrea Barbasso
committed
[DSC-2730] set empty string on dsEscapePipe if text is empty
1 parent 2bacba5 commit 98f750c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/shared/utils/escape-html.pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class EscapeHtmlPipe implements PipeTransform {
3030
*/
3131
transform(text: string): SafeHtml {
3232
if (text == null) {
33-
return this.sanitizer.bypassSecurityTrustHtml('');
33+
return '';
3434
}
3535

3636
let processed = text;

0 commit comments

Comments
 (0)