From 7f04d5564121e91565430a02307e4dd639186643 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Mon, 12 Nov 2018 13:37:09 -0800 Subject: [PATCH] change target for links in posts --- src/pipes/parser/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipes/parser/parser.ts b/src/pipes/parser/parser.ts index b4c68e5..7cf0324 100644 --- a/src/pipes/parser/parser.ts +++ b/src/pipes/parser/parser.ts @@ -17,7 +17,7 @@ export class ParserPipe implements PipeTransform { transform(value: string, ...args): SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl { let hregex = /href="([\S]+)"/g; // value = value.replace(hregex, "class=\"ex-link\" href="); - value = value.replace(hregex, "onClick=\"window.open('$1', '_system', 'location=yes')\""); + value = value.replace(hregex, "onClick=\"window.open('$1', '_blank', 'location=yes')\""); return this._sanitizer.bypassSecurityTrustHtml(value); } }