Skip to content

Commit acd1f30

Browse files
committed
Fix apostrophe in news title for search
Signed-off-by: George Araújo <[email protected]>
1 parent a340b60 commit acd1f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/scripts/search.liquid

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
{%- assign title = item.title | newline_to_br | replace: "<br />", " " | replace: "<br/>", " " | strip_html | strip_newlines | escape | strip -%}
107107
{%- endif -%}
108108
id: "{{ collection.label }}-{{ title | slugify }}",
109-
title: '{{ title | emojify | truncatewords: 13 }}',
109+
title: '{{ title | escape | emojify | truncatewords: 13 }}',
110110
description: "{{ item.description | strip_html | strip_newlines | escape | strip }}",
111111
section: "{{ collection.label | capitalize }}",
112112
{%- unless item.inline -%}

0 commit comments

Comments
 (0)