diff --git a/src/lib/components/modal.svelte b/src/lib/components/modal.svelte index c3a8fd901..9cb5cba61 100644 --- a/src/lib/components/modal.svelte +++ b/src/lib/components/modal.svelte @@ -54,8 +54,8 @@ }}> {@html DOMPurify.sanitize(error, { ALLOWED_TAGS: ['a'], - ALLOWED_ATTR: ['href', 'target', 'rel'] - })} + ALLOWED_ATTR: ['href'] + }).replace(/ {/if} @@ -80,7 +80,8 @@ opacity: 0; animation: none; } - + /* Svelte cannot see the DOM rendered by `{@html}`, resulting in a false positive.*/ + /* svelte-ignore css-unused-selector */ .alert-error :global(a) { color: inherit; text-decoration: underline;