Strip HTML first so that long HTML blocks (like script tags) get removed correctly

This commit is contained in:
Andrew Cantino 2018-02-15 16:50:18 -08:00 committed by GitHub
parent bd279e749e
commit 38460b7344
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ layout: default
<div class="catalogue-line"></div>
<p>
{{ post.content | truncatewords: 30 | strip_html }}
{{ post.content | strip_html | truncatewords: 30 }}
</p>
</div>