Skip to content

Commit

Permalink
Strip HTML first so that long HTML blocks (like script tags) get remo…
Browse files Browse the repository at this point in the history
…ved correctly
  • Loading branch information
cantino authored Feb 16, 2018
1 parent bd279e7 commit 38460b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1 class="catalogue-title">{{ post.title }}</h1>
<div class="catalogue-line"></div>

<p>
{{ post.content | truncatewords: 30 | strip_html }}
{{ post.content | strip_html | truncatewords: 30 }}
</p>

</div>
Expand Down

0 comments on commit 38460b7

Please sign in to comment.