From da0762007d403a5f67c766cb8a395ab7caa2d28e Mon Sep 17 00:00:00 2001
From: John Boyle <novelistparty@users.noreply.github.com>
Date: Thu, 31 Jan 2019 10:02:06 -0800
Subject: [PATCH] escape the single quotes in the string

---
 lib/tasks/search.rake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/tasks/search.rake b/lib/tasks/search.rake
index 50ef275c..9a933b37 100644
--- a/lib/tasks/search.rake
+++ b/lib/tasks/search.rake
@@ -14,8 +14,8 @@ namespace :search do
 {
   {% for page in site.html_pages %}{% if page.search_exclude != true %}"{{ forloop.index0 }}": {
     "id": "{{ forloop.index0 }}",
-    "title": "{{ page.title | replace: '&amp;', '&' }}",
-    "content": "'+content+'",
+    "title": "{{ page.title | replace: \'&amp;\', \'&\' }}",
+    "content": "\'+content+\'",
     "url": "{{ page.url | absolute_url }}",
     "relUrl": "{{ page.url }}"
   }{% unless forloop.last %},{% endunless %}
-- 
GitLab