This commit is contained in:
Timothy Jaeryang Baek committed 2026-04-02 17:53:11 -05:00
1 parent a72e8e0223
commit ae0316a30e
3 files changed
+9 -9

No files matched your search

+3 -2
View File
@@ -1,6 +1,7 @@
<script lang="ts">
import { toast } from 'svelte-sonner';
import { marked } from 'marked';
import DOMPurify from 'dompurify';
import { onMount, getContext, tick, createEventDispatcher } from 'svelte';
import { blur, fade } from 'svelte/transition';
@@ -174,11 +175,11 @@
<div
class="mt-0.5 px-2 text-sm font-normal text-gray-500 dark:text-gray-400 line-clamp-2 max-w-xl markdown"
>
{@html marked.parse(
{@html DOMPurify.sanitize(marked.parse(
sanitizeResponseContent(
models[selectedModelIdx]?.info?.meta?.description ?? ''
).replaceAll('\n', '<br>')
)}
))}
</div>
</Tooltip>