diff --git a/app/markdown/lib/parser/marked/marked.js b/app/markdown/lib/parser/marked/marked.js index f930a3369bb92..68a665262ab6f 100644 --- a/app/markdown/lib/parser/marked/marked.js +++ b/app/markdown/lib/parser/marked/marked.js @@ -106,7 +106,7 @@ export const marked = (message, { highlight, }); - message.html = dompurify.sanitize(message.html); + message.html = dompurify.sanitize(message.html, { ADD_ATTR: ['target'] }); return message; };