diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-08-23 22:29:26 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-08-23 22:29:26 +0700 |
commit | bf2b12f75419c548f4939e3ff8448f9a4913aa4c (patch) | |
tree | d43ae3f49b54228d2a387e3966338f057a946448 | |
parent | ae3f3fcb790da7e0b0b8fa1c7f6d317020606e17 (diff) | |
download | blog-bf2b12f75419c548f4939e3ff8448f9a4913aa4c.tar.gz |
Add safe filter to avoid overescaping
-rw-r--r-- | layouts/_default/_markup/render-heading.html | 2 |
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 }}> |