about summary refs log tree commit diff
path: root/layouts
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2021-08-23 22:29:26 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2021-08-23 22:29:26 +0700
commitbf2b12f75419c548f4939e3ff8448f9a4913aa4c (patch)
treed43ae3f49b54228d2a387e3966338f057a946448 /layouts
parentae3f3fcb790da7e0b0b8fa1c7f6d317020606e17 (diff)
downloadblog-bf2b12f75419c548f4939e3ff8448f9a4913aa4c.tar.gz
Add safe filter to avoid overescaping
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/_markup/render-heading.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html
index 257cc4c..2b14e7c 100644
--- a/layouts/_default/_markup/render-heading.html
+++ b/layouts/_default/_markup/render-heading.html
@@ -1,5 +1,5 @@
 <h{{ .Level }} id="{{ .Anchor | safeURL }}">
   <a href="#{{ .Anchor | safeURL}}">
-  {{ .Text }}
+  {{ .Text | safeHTML }}
   </a>
 </h{{ .Level }}>