change target for links in posts
This commit is contained in:
parent
d80cdf1690
commit
7f04d55641
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue