diff options
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/sanitize.ts')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/sanitize.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/helpers/sanitize.ts b/server/sonar-web/src/main/js/helpers/sanitize.ts index 2dace31d2d1..75cb96e84f5 100644 --- a/server/sonar-web/src/main/js/helpers/sanitize.ts +++ b/server/sonar-web/src/main/js/helpers/sanitize.ts @@ -22,7 +22,7 @@ import { sanitize } from 'dompurify'; export function sanitizeStringRestricted(html: string) { return sanitize(html, { ALLOWED_TAGS: ['b', 'br', 'code', 'i', 'li', 'p', 'strong', 'ul', 'a'], - ALLOWED_ATTR: ['target', 'href'] + ALLOWED_ATTR: ['target', 'href'], }); } |