mirror of
https://github.com/open-webui/open-webui
synced 2024-11-07 09:09:53 +00:00
fix: pseudo html rendering issue
This commit is contained in:
parent
eee1dad217
commit
9025e9dbb1
@ -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 New Issue
Block a user