mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13: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)}
|
{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 a new issue