From 8ad20776ad6babf0fd66fab21cfce486da56a070 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 3 Apr 2018 21:16:44 +0000 Subject: [PATCH] Added security to the post template Signed-off-by: Valentin Popov --- _layouts/post.html | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/_layouts/post.html b/_layouts/post.html index 17e18f4..aa5b6ca 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -2,11 +2,17 @@ layout: default --- -
-

{{ page.title }}

+ +

+ {{ page.title | smartify | strip_html | normalize_whitespace }} +

+ + - {{ content }} + + + {{ content | normalize_whitespace }}
@@ -14,9 +20,9 @@ layout: default