From 246a2e1e80ce19b7f08d5820518882d59013429b Mon Sep 17 00:00:00 2001 From: Geri Ochoa Date: Tue, 8 Nov 2022 11:34:43 -0500 Subject: Fix readfile not rendering html code --- layouts/shortcodes/readfile.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/readfile.html b/layouts/shortcodes/readfile.html index 7d27caa..ce05aef 100644 --- a/layouts/shortcodes/readfile.html +++ b/layouts/shortcodes/readfile.html @@ -32,7 +32,7 @@ if the file is not found */}} {{- highlight ($.Scratch.Get "filepath" | readFile | htmlUnescape | safeHTML ) (.Get "lang") "" -}} {{ else }} - {{- $.Scratch.Get "filepath" | os.ReadFile | .Page.RenderString | htmlUnescape | safeHTML -}} + {{- $.Scratch.Get "filepath" | os.ReadFile | .Page.RenderString | safeHTML -}} {{ end }} {{ else }} -- cgit v1.2.3