Skip to content

Commit

Permalink
Avoid search being affected by html tags inline in articles
Browse files Browse the repository at this point in the history
  • Loading branch information
themkat committed Aug 15, 2024
1 parent 0069913 commit fc689f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h2 id="search-page-title">Are you not searching for anything? Enable JS or some
id: currentId++,
title: `{{ post.title }}`,
excerpt: `{{ post.excerpt | strip_html | strip_newlines | escape }}`,
body: decodeURIComponent('{{ post.content | url_encode }}'),
body: decodeURIComponent('{{ post.content | strip_html | url_encode }}'),
url: '{{ post.url | relative_url }}'
});
{% endfor %}
Expand Down

0 comments on commit fc689f9

Please sign in to comment.