mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 21:42:58 +00:00
refac
This commit is contained in:
parent
330a3535e6
commit
b1d31d9b8e
@ -1,4 +1,6 @@
|
||||
<script lang="ts">
|
||||
import DOMPurify from 'dompurify';
|
||||
|
||||
import { getContext, onMount, tick } from 'svelte';
|
||||
import Modal from '$lib/components/common/Modal.svelte';
|
||||
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
||||
@ -150,7 +152,7 @@
|
||||
</div>
|
||||
<pre class="text-sm dark:text-gray-400 whitespace-pre-line">
|
||||
{#if document.metadata?.html}
|
||||
{@html document.document}
|
||||
{@html DOMPurify(document.document)}
|
||||
{:else}
|
||||
{document.document}
|
||||
{/if}
|
||||
|
Loading…
Reference in New Issue
Block a user