From 9e0389609390a0f6baf826b877cf0aa8e83fc9c3 Mon Sep 17 00:00:00 2001 From: Revanshu Paliwal Date: Wed, 21 Dec 2022 14:55:38 +0100 Subject: [PATCH] SONAR-17579 Allowing rel attribute for external links --- server/sonar-web/src/main/js/helpers/sanitize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/helpers/sanitize.ts b/server/sonar-web/src/main/js/helpers/sanitize.ts index 007104385bc..20a71d1fb16 100644 --- a/server/sonar-web/src/main/js/helpers/sanitize.ts +++ b/server/sonar-web/src/main/js/helpers/sanitize.ts @@ -52,6 +52,6 @@ export function sanitizeUserInput(html: string) { 'blockquote', 'pre', ], - ALLOWED_ATTR: ['target', 'href'], + ALLOWED_ATTR: ['target', 'href', 'rel'], }); } -- 2.39.5