{#each tokens as token} {#if token.type === "text"} {#await token.html then html} {@html DOMPurify.sanitize(html)} {/await} {:else if token.type === "code"} {/if} {/each}