diff --git a/modules/ui/note_comments.js b/modules/ui/note_comments.js index 4ace9a2cb..b8ea4ba5c 100644 --- a/modules/ui/note_comments.js +++ b/modules/ui/note_comments.js @@ -68,7 +68,10 @@ export function uiNoteComments() { mainEnter .append('div') .attr('class', 'comment-text') - .html(function(d) { return d.html; }); + .html(function(d) { return d.html; }) + .selectAll('a') + .attr('rel', 'noopener nofollow') + .attr('target', '_blank'); comments .call(replaceAvatars);