]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-17579 Allowing rel attribute for external links
authorRevanshu Paliwal <revanshu.paliwal@sonarsource.com>
Wed, 21 Dec 2022 13:55:38 +0000 (14:55 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 22 Dec 2022 20:03:06 +0000 (20:03 +0000)
server/sonar-web/src/main/js/helpers/sanitize.ts

index 007104385bc4b3b89822920e95e411a0c53b1df9..20a71d1fb1613bbd3ed96f0ff52b417875ed2915 100644 (file)
@@ -52,6 +52,6 @@ export function sanitizeUserInput(html: string) {
       'blockquote',
       'pre',
     ],
-    ALLOWED_ATTR: ['target', 'href'],
+    ALLOWED_ATTR: ['target', 'href', 'rel'],
   });
 }