From 634f102e0c651c314acf856160f93fc1dfe05b05 Mon Sep 17 00:00:00 2001 From: Yitao Yao Date: Sat, 23 Jun 2018 22:09:47 +0800 Subject: [PATCH] add CDATA to search.xml --- search.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search.xml b/search.xml index f8da3802f2..629b5219e6 100644 --- a/search.xml +++ b/search.xml @@ -6,9 +6,9 @@ sitemap: false {% for post in site.posts %} - {{ post.title | strip_html | xml_escape }} + <![CDATA[{{ post.title | strip_html }}]]> {{ post.url | relative_url }} - {{ post.content | strip_html | xml_escape }} + {% for category in post.categories %} {{ category | strip_html | xml_escape }}