{{- $.Scratch.Add "offline-search-index" slice -}}
{{- range where .Site.AllPages ".Params.exclude_search" "!=" true -}}
{{- $.Scratch.Add "offline-search-index" (dict "title" .Title "ref" .RelPermalink "body" .Plain "excerpt" (.Summary | truncate 100)) -}}
{{- end -}}
{{- $.Scratch.Get "offline-search-index" | jsonify -}}

{{- $.Scratch.Add "offline-search-index" slice -}}
{{- range where .Site.AllPages ".Params.exclude_search" "!=" true -}}
{{- $.Scratch.Add "offline-search-index" (dict "title" (.Title | htmlUnescape) "ref" .RelPermalink "body" (.Plain | htmlUnescape) "excerpt" (.Summary | htmlUnescape | truncate 100)) -}}
{{- end -}}
{{- $.Scratch.Get "offline-search-index" | jsonify -}}

Fix a offline search issue that escaped HTML entities is shown
Fix a offline search issue that escaped HTML entities is shown
