Skip to content

Commit

Permalink
bug fix: escape characters in url in searchjson; fixes daattali#1232
Browse files Browse the repository at this point in the history
  • Loading branch information
daattali committed Nov 1, 2023
1 parent 8854d96 commit ff34170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"title" : "{% if post.title != "" %}{{ post.title | strip_html | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}", \
"desc" : "{% if post.title != "" %}{{ post.title | strip_html | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}", \
"category" : "{{ post.tags | join: \', \' }}", \
"url" : "{{ site.baseurl }}{{ post.url }}", \
"url" : "{{ site.baseurl }}{{ post.url | escape }}", \
"date" : "{{ post.date | date: "%B %e, %Y" | default: "January 1, 1970" }}" \
}, \
{% endfor %} \
Expand Down

0 comments on commit ff34170

Please sign in to comment.