Skip to content

Commit 2368a37

Browse files
committed
target blank added
1 parent b869957 commit 2368a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/pipes/linkifyWithText.pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class LinkifyWithTextPipe implements PipeTransform {
2525
let text = plainText.match(replacePattern2);
2626

2727
if(text && link){
28-
return `<a href='${link[1]}'>${text[1]}</a>`;
28+
return `<a href='${link[1]}' target="_blank">${text[1]}</a>`;
2929
}
3030

3131
return plainText;

0 commit comments

Comments
 (0)