Skip to content
Snippets Groups Projects
Unverified Commit 35d78648 authored by Patrick Marsceill's avatar Patrick Marsceill Committed by GitHub
Browse files

Merge pull request #84 from novelistparty/master

fix #80 - escape the single quotes in the string
parents c9e42847 da076200
No related branches found
No related tags found
No related merge requests found
......@@ -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: '&', '&' }}",
"content": "'+content+'",
"title": "{{ page.title | replace: \'&\', \'&\' }}",
"content": "\'+content+\'",
"url": "{{ page.url | absolute_url }}",
"relUrl": "{{ page.url }}"
}{% unless forloop.last %},{% endunless %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment