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