Skip to content

Commit 8121ad0

Browse files
authored
Fix apostrophe in news title for search (#2879)
Fix #2876 Weirdly enough, we already escape the title a few lines above the changed one, but had to escape it again here. Signed-off-by: George Araújo <[email protected]>
1 parent 957dc2c commit 8121ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/scripts/search.liquid

Lines changed: 1 addition & 1 deletion
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)