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 <george.gcac@gmail.com>
This commit is contained in:
parent
957dc2c35a
commit
8121ad0269
@ -106,7 +106,7 @@
|
|||||||
{%- assign title = item.title | newline_to_br | replace: "<br />", " " | replace: "<br/>", " " | strip_html | strip_newlines | escape | strip -%}
|
{%- assign title = item.title | newline_to_br | replace: "<br />", " " | replace: "<br/>", " " | strip_html | strip_newlines | escape | strip -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
id: "{{ collection.label }}-{{ title | slugify }}",
|
id: "{{ collection.label }}-{{ title | slugify }}",
|
||||||
title: '{{ title | emojify | truncatewords: 13 }}',
|
title: '{{ title | escape | emojify | truncatewords: 13 }}',
|
||||||
description: "{{ item.description | strip_html | strip_newlines | escape | strip }}",
|
description: "{{ item.description | strip_html | strip_newlines | escape | strip }}",
|
||||||
section: "{{ collection.label | capitalize }}",
|
section: "{{ collection.label | capitalize }}",
|
||||||
{%- unless item.inline -%}
|
{%- unless item.inline -%}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user