{% include no-linenos.html content=post.content %} - {{ content | markdownify | strip_html | truncate: 200 }} + {{ content | markdownify | strip_html | truncate: 200 | escape }}
From 415f11ecb8d53ce4eb7b623fa12235bdd8c81e61 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 7 Dec 2021 16:40:19 +0800 Subject: [PATCH] Escape characters of post list (homepage and related posts) To pass the html-proofer test --- _includes/related-posts.html | 2 +- _layouts/home.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/related-posts.html b/_includes/related-posts.html index 910de53..bbda00b 100644 --- a/_includes/related-posts.html +++ b/_includes/related-posts.html @@ -94,7 +94,7 @@
{% include no-linenos.html content=post.content %} - {{ content | markdownify | strip_html | truncate: 200 }} + {{ content | markdownify | strip_html | truncate: 200 | escape }}
{% include no-linenos.html content=post.content %} - {{ content | markdownify | strip_html | truncate: 200 }} + {{ content | markdownify | strip_html | truncate: 200 | escape }}