diff --git a/scripts/helpers.js b/scripts/helpers.js index 0be55c6b..3b5ed132 100644 --- a/scripts/helpers.js +++ b/scripts/helpers.js @@ -384,7 +384,8 @@ function escapeHTML(unsafe) { if(typeof unsafe === 'undefined' || unsafe === null) { return ''; } - return DOMPurify.sanitize(String(unsafe)); + + return DOMPurify.sanitize(String(unsafe), { ADD_ATTR: ['target'] }); } function html(strings, ...values) {