Skip to content

Commit c255b53

Browse files
committed
use escape
1 parent 1af5f6c commit c255b53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/template.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{% endif %}
1919
{% endif %}
2020
{% if seo_title %}
21-
{% assign seo_title = seo_title | replace:'"','"' | markdownify | strip_html | strip_newlines | replace:'"','"' | escape_once %}
21+
{% assign seo_title = seo_title | escape | markdownify | strip_html | strip_newlines | replace:'"','"' | escape_once %}
2222
{% endif %}
2323

2424
{% if page.description %}
@@ -27,7 +27,7 @@
2727
{% assign seo_description = site.description %}
2828
{% endif %}
2929
{% if seo_description %}
30-
{% assign seo_description = seo_description | replace:'"','"' | markdownify | strip_html | strip_newlines | replace:'"','"' | escape_once %}
30+
{% assign seo_description = seo_description | escape | markdownify | strip_html | strip_newlines | replace:'"','"' | escape_once %}
3131
{% endif %}
3232

3333
{% if seo_title %}

0 commit comments

Comments
 (0)