Skip to content

Commit

Permalink
fix: search index content htmlEscape
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Apr 28, 2020
1 parent a869ce2 commit 2ccba79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{{- $one = delimit $tags "\n" | dict "tags" | merge $one -}}
{{- $publish_date := .PublishDate.Format (.Site.Params.dateFormat | default "2006-01-02") -}}
{{- $one = dict "date" $publish_date | merge $one -}}
{{- $content := .RawContent -}}
{{- $content := .RawContent | htmlEscape -}}
{{- if gt .Site.Params.search.contentLength 0 -}}
{{- $content = substr $content 0 .Site.Params.search.contentLength -}}
{{- end -}}
Expand Down

0 comments on commit 2ccba79

Please sign in to comment.