diff --git a/packages/platform-rig/profiles/ui/eslint.config.json b/packages/platform-rig/profiles/ui/eslint.config.json index 1544c9ce87..538de3db4d 100644 --- a/packages/platform-rig/profiles/ui/eslint.config.json +++ b/packages/platform-rig/profiles/ui/eslint.config.json @@ -58,5 +58,8 @@ "@typescript-eslint/no-floating-promises": "warn" } } - ] + ], + "rules": { + "svelte/no-at-html-tags": "error" + } } diff --git a/packages/ui/src/components/Html.svelte b/packages/ui/src/components/Html.svelte index 679ac0e1a1..3e3983c665 100644 --- a/packages/ui/src/components/Html.svelte +++ b/packages/ui/src/components/Html.svelte @@ -13,11 +13,12 @@ // limitations under the License. --> + {@html sanitized} diff --git a/packages/ui/src/components/LinkWrapper.svelte b/packages/ui/src/components/LinkWrapper.svelte index 5abd9a82a1..1694b4de3d 100644 --- a/packages/ui/src/components/LinkWrapper.svelte +++ b/packages/ui/src/components/LinkWrapper.svelte @@ -30,5 +30,6 @@ {#if text} + {@html replaceURLs(text)} {/if} diff --git a/packages/ui/src/components/internal/LangPopup.svelte b/packages/ui/src/components/internal/LangPopup.svelte index 688d3ce8a0..950a5a5ba6 100644 --- a/packages/ui/src/components/internal/LangPopup.svelte +++ b/packages/ui/src/components/internal/LangPopup.svelte @@ -16,6 +16,7 @@ import { createEventDispatcher } from 'svelte' import Label from '../Label.svelte' import IconCheck from '../icons/Check.svelte' + import Html from '../Html.svelte' export let langs: any export let selected: string @@ -34,7 +35,7 @@ dispatch('close', lang.id) }} > -
{@html lang.logo}
+
{#if lang.id === selected} diff --git a/packages/ui/src/components/internal/LangSelector.svelte b/packages/ui/src/components/internal/LangSelector.svelte index 2d78ed7b48..9906bd98ec 100644 --- a/packages/ui/src/components/internal/LangSelector.svelte +++ b/packages/ui/src/components/internal/LangSelector.svelte @@ -17,6 +17,7 @@ import { getMetadata } from '@hcengineering/platform' import ui, { showPopup, deviceOptionsStore as deviceInfo } from '../..' import LangPopup from './LangPopup.svelte' + import Html from '../Html.svelte' let pressed: boolean = false @@ -70,5 +71,7 @@ class:pressed on:click={selectLanguage} > - {@html selected?.logo} + {#if selected} + + {/if} diff --git a/plugins/calendar-resources/src/components/IntegrationConnect.svelte b/plugins/calendar-resources/src/components/IntegrationConnect.svelte index 6f5b59f394..c729f09749 100644 --- a/plugins/calendar-resources/src/components/IntegrationConnect.svelte +++ b/plugins/calendar-resources/src/components/IntegrationConnect.svelte @@ -14,7 +14,7 @@ -->