move purify to server side.

This commit is contained in:
Jason Schwarzenberger
2020-12-02 15:46:06 +13:00
parent cee104ea06
commit d1c513b9d6
11 changed files with 639 additions and 30 deletions

View File

@@ -1,6 +1,5 @@
<script>
import Time from "../components/Time.svelte";
import Html from "../components/Html.svelte";
export let story;
export let comment;
@@ -86,7 +85,7 @@
</header>
<section class={showComments ? 'comment-text' : 'comment-text is-collapsed'}>
<Html html={comment.text} />
{@html comment.text}
</section>
{#if !showComments}