fix: pseudo html rendering issue

This commit is contained in:
Timothy J. Baek 2024-08-16 15:44:18 +02:00
parent eee1dad217
commit 9025e9dbb1
2 changed files with 2 additions and 2 deletions

View File

@ -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}

View File

@ -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}