hugo-hyperskip

Email-powered static comments for Hugo

git clone git://git.shimmy1996.com/hugo-hyperskip.git
commit b299f3639b69112b2ef4a39a331c99daba393196
parent da8b5ebb5918496b3fb661dca7e04565c96b4190
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Mon,  6 Apr 2020 15:40:15 -0500

Trust user input and don't escape before hand

Diffstat:
Mlayouts/partials/list_comment.html | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layouts/partials/list_comment.html b/layouts/partials/list_comment.html
@@ -20,7 +20,7 @@
     </a>
     {{- end -}}
   </header>
-  {{- with (.content | htmlEscape | markdownify) }}
+  {{- with (.content | markdownify ) }}
   {{ if not ( findRE "<[h|p][^>]*>" . ) }}<p>{{ . }}</p>{{ else }}{{ . }}{{ end }}
   {{ end -}}
 </article>