mirror of
https://github.com/open-webui/open-webui
synced 2024-11-07 17:19:53 +00:00
fix: pseudo html rendering issue
This commit is contained in:
parent
eee1dad217
commit
9025e9dbb1
@ -16,7 +16,7 @@
|
|||||||
{unescapeHtml(token.text)}
|
{unescapeHtml(token.text)}
|
||||||
{:else if token.type === 'html'}
|
{:else if token.type === 'html'}
|
||||||
{@const html = DOMPurify.sanitize(token.text)}
|
{@const html = DOMPurify.sanitize(token.text)}
|
||||||
{#if html}
|
{#if html && html.includes('<video')}
|
||||||
{@html html}
|
{@html html}
|
||||||
{:else}
|
{:else}
|
||||||
{token.text}
|
{token.text}
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{:else if token.type === 'html'}
|
{:else if token.type === 'html'}
|
||||||
{@const html = DOMPurify.sanitize(token.text)}
|
{@const html = DOMPurify.sanitize(token.text)}
|
||||||
{#if html}
|
{#if html && html.includes('<video')}
|
||||||
{@html html}
|
{@html html}
|
||||||
{:else}
|
{:else}
|
||||||
{token.text}
|
{token.text}
|
||||||
|
Loading…
Reference in New Issue
Block a user