Remove HTML tags from preview

fixes #24
This commit is contained in:
Trinity Pointard 2018-06-18 19:28:26 +02:00
parent 7e3cdec0b6
commit 97c652cefd

View File

@ -6,7 +6,7 @@
{% endif %} {% endif %}
<div class="card"> <div class="card">
<h3><a href="{{ article.url }}">{{ article.post.title }}</a></h3> <h3><a href="{{ article.url }}">{{ article.post.title }}</a></h3>
<main><p>{{ article.post.content | striptags | truncate(length=200) }}</p></main> <main><p>{{ article.post.content | safe | striptags | truncate(length=200) }}</p></main>
<p> <p>
{{ "By {{ link_1 }}{{ link_2 }}{{ link_3 }}{{ name }}{{ link_4 }}" | _( {{ "By {{ link_1 }}{{ link_2 }}{{ link_3 }}{{ name }}{{ link_4 }}" | _(
link_1='<a href="/@/', link_1='<a href="/@/',