From ff34170c5d62507d62f9c946550dc63244aa6979 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Wed, 1 Nov 2023 06:14:07 +0000 Subject: [PATCH] bug fix: escape characters in url in searchjson; fixes #1232 --- _includes/search.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/search.html b/_includes/search.html index 2ce261987b1f..58b67be5ee5d 100644 --- a/_includes/search.html +++ b/_includes/search.html @@ -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 %} \