From deabb9814786a27a82443866f06b762ce85228b3 Mon Sep 17 00:00:00 2001 From: Wooseop Kim Date: Tue, 28 Jan 2020 23:26:48 +0900 Subject: [PATCH] Use safeHTML function --- layouts/shortcodes/figure.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index d65b533..6642c82 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -1,8 +1,8 @@ {{ if .Get "src" }}
{{ . | plainify }} - {{- if .Get "caption" -}} -
{{ .Get "caption" }}
- {{- end -}} + {{ if .Get "caption" }} +
{{ .Get "caption" | safeHTML }}
+ {{ end }}
{{ end }}