Escape page titles in attributes
This commit is contained in:
@@ -130,7 +130,7 @@
|
||||
|
||||
{{ if and $content $paramlink }}
|
||||
{{ $link := or (.Param "paige.feed.page_link" | markdownify) "⏎" }}
|
||||
{{ $footer := printf `<p><a href="%s" title="%s">%s</a></p>` .Permalink .Title $link }}
|
||||
{{ $footer := printf `<p><a href="%s" title="%s">%s</a></p>` .Permalink (htmlEscape .Title) $link }}
|
||||
|
||||
{{ $content = print $content $footer }}
|
||||
{{ end }}
|
||||
|
@@ -93,7 +93,7 @@
|
||||
|
||||
{{ if and $description $paramlink }}
|
||||
{{ $pagelink := or (.Param "paige.feed.page_link" | markdownify) "⏎" }}
|
||||
{{ $footer := printf `<p><a href="%s" title="%s">%s</a></p>` .Permalink $title $pagelink }}
|
||||
{{ $footer := printf `<p><a href="%s" title="%s">%s</a></p>` .Permalink (htmlEscape $title) $pagelink }}
|
||||
|
||||
{{ $description = print $description $footer }}
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user