mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
Revert "fix/feat: add HTML rendering to citations back"
This commit is contained in:
parent
fb464800e4
commit
d0f13d7c07
1 changed files with 1 additions and 7 deletions
|
|
@ -1,6 +1,4 @@
|
|||
<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';
|
||||
|
|
@ -151,11 +149,7 @@
|
|||
{$i18n.t('Content')}
|
||||
</div>
|
||||
<pre class="text-sm dark:text-gray-400 whitespace-pre-line">
|
||||
{#if document.metadata?.html}
|
||||
{@html DOMPurify(document.document)}
|
||||
{:else}
|
||||
{document.document}
|
||||
{/if}
|
||||
{document.document}
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue