From 1ee75d9431548faee4cc61300610b67daef9919f Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Mon, 28 Mar 2022 15:53:47 -0700 Subject: [PATCH] Escape raw HTML in rawblocks --- layouts/shortcodes/rawblock.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/rawblock.html b/layouts/shortcodes/rawblock.html index 51cf51a..c89a1d4 100644 --- a/layouts/shortcodes/rawblock.html +++ b/layouts/shortcodes/rawblock.html @@ -1,2 +1,2 @@ {{ partial "geturl.html" (dict "scratch" .Scratch "path" (.Get 0) "submoduleLinks" .Site.Params.submoduleLinks) }} -{{ partial "group.html" (dict "url" (.Scratch.Get "bestUrl") "path" (.Get 0) "comment" ", entire file" "content" (safeHTML (printf "
%s
" (readFile (printf "code/%s" (.Get 0)))))) }} +{{ partial "group.html" (dict "url" (.Scratch.Get "bestUrl") "path" (.Get 0) "comment" ", entire file" "content" (safeHTML (printf "
%s
" (htmlEscape (readFile (printf "code/%s" (.Get 0))))))) }}