Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
[IMPROVE] Open links in another tab on Livechat widget (#610)
Browse files Browse the repository at this point in the history
prevent target attribute from being removed by sanitizer
  • Loading branch information
billynoah authored Aug 3, 2021
1 parent 5498c56 commit 4f60b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Messages/MessageText/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ md.use((md) => {
});
});

export const renderMarkdown = (...args) => sanitize(md.render(...args));
export const renderMarkdown = (...args) => sanitize(md.render(...args), { ADD_ATTR: ['target','rel'] });

0 comments on commit 4f60b93

Please sign in to comment.