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
+2 -3
View File
@@ -1,6 +1,5 @@
<script>
import StoryInfo from "../components/StoryInfo.svelte";
import Html from "../components/Html.svelte";
export let story;
@@ -62,7 +61,7 @@
<article class="article">
<header class="article-header">
<h1 class="article-title">
<Html html={story.title} text={story.title} />
{@html story.title}
</h1>
{#if story.url}
<div>source: <a class="article-source" href={story.url}>{host}</a></div>
@@ -73,6 +72,6 @@
</header>
<section class="article-body">
<Html html={story.text} />
{@html story.text}
</section>
</article>