mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
fix: pseudo html rendering issue
This commit is contained in:
parent
eee1dad217
commit
9025e9dbb1
2 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@
|
|||
{unescapeHtml(token.text)}
|
||||
{:else if token.type === 'html'}
|
||||
{@const html = DOMPurify.sanitize(token.text)}
|
||||
{#if html}
|
||||
{#if html && html.includes('<video')}
|
||||
{@html html}
|
||||
{:else}
|
||||
{token.text}
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@
|
|||
{/if}
|
||||
{:else if token.type === 'html'}
|
||||
{@const html = DOMPurify.sanitize(token.text)}
|
||||
{#if html}
|
||||
{#if html && html.includes('<video')}
|
||||
{@html html}
|
||||
{:else}
|
||||
{token.text}
|
||||
|
|
|
|||
Loading…
Reference in a new issue