Use safeHTML with printf

master
Will Faught 6 months ago
parent 06ce1f7e33
commit fb99924f65

@ -109,7 +109,7 @@
{{ if and $content $paramlink }} {{ if and $content $paramlink }}
{{ $link := or (.Param "paige.feed.page_link" | markdownify) "⏎" }} {{ $link := or (.Param "paige.feed.page_link" | markdownify) "⏎" }}
{{ $footer := printf `<p><a href="%s" title="%s">%s</a></p>` .Permalink (htmlEscape .Title) $link }} {{ $footer := printf `<p><a href="%s" title="%s">%s</a></p>` .Permalink (htmlEscape .Title) $link | safeHTML }}
{{ $content = print $content $footer }} {{ $content = print $content $footer }}
{{ end }} {{ end }}

@ -112,7 +112,7 @@
{{ if and $description $paramlink }} {{ if and $description $paramlink }}
{{ $pagelink := or (.Param "paige.feed.page_link" | markdownify) "⏎" }} {{ $pagelink := or (.Param "paige.feed.page_link" | markdownify) "⏎" }}
{{ $footer := printf `<p><a href="%s" title="%s">%s</a></p>` .Permalink (htmlEscape $title) $pagelink }} {{ $footer := printf `<p><a href="%s" title="%s">%s</a></p>` .Permalink (htmlEscape $title) $pagelink | safeHTML }}
{{ $description = print $description $footer }} {{ $description = print $description $footer }}
{{ end }} {{ end }}

Loading…
Cancel
Save