diff --git a/assets/data/search.json b/assets/data/search.json index 6ae087f..5627dca 100644 --- a/assets/data/search.json +++ b/assets/data/search.json @@ -10,7 +10,7 @@ layout: compress "categories": "{{ post.categories | join: ', '}}", "tags": "{{ post.tags | join: ', ' }}", "date": "{{ post.date }}", - "snippet": "{{ post.content | strip_html | strip_newlines | remove_chars | escape | truncate: 300 }}" + "snippet": "{{ post.content | strip_html | strip_newlines | remove_chars | escape | truncate: 300 | replace: '\', '\\\\' }}" }{% unless forloop.last %},{% endunless %} {% endfor %} ]