diff --git a/webapp/src/components/Article.svelte b/webapp/src/components/Article.svelte
index 1d52659..69d1409 100644
--- a/webapp/src/components/Article.svelte
+++ b/webapp/src/components/Article.svelte
@@ -70,7 +70,11 @@
- {@html title}
+ {#if !title}
+ {story.title}
+ {:else}
+ {@html title}
+ {/if}
{#if story.url}
@@ -81,6 +85,10 @@
- {@html html}
+ {#if !html}
+ {story.content}
+ {:else}
+ {@html html}
+ {/if}
diff --git a/webapp/src/components/StoryList.svelte b/webapp/src/components/StoryList.svelte
index 593448c..ec42f8e 100644
--- a/webapp/src/components/StoryList.svelte
+++ b/webapp/src/components/StoryList.svelte
@@ -6,7 +6,7 @@
export let stories;
const host = (url) => new URL(url).hostname.replace(/^www\./, "");
- let purify = () => "";
+ let purify;
onMount(() => {
purify = (html) => DOMPurify.sanitize(html);
@@ -48,10 +48,13 @@
alt="logo"
class="story-icon"
style="height: 1rem; width: 1rem;" />
- {@html purify(story.title)}
+
+ {#if !purify}
+ {story.title}
+ {:else}
+ {@html purify(story.title)}
+ {/if}
+
{host(story.url || story.link)}