hugo/tpl
Rodolfo Carvalho e22b3f54c3 tpl: Fix internal templates usage of safeHTMLAttr
The `safeHTMLAttr` function operates on a full attribute definition, not
just within the attribute value.

Docs: https://gohugo.io/functions/safehtmlattr/

For `opengraph.html`, run the whole `content` HTML attribute through
`safeHTMLAttr`. That will preserve `+` signs in formatted dates.

For `vimeo_simple.html`, `safeHTMLAttr` was in the context of an
attribute value, thus having no effect. In this case we could replace it
with `safeURL`, but since the code is coming from an API it is safer to
just let Go's template engine sanitize the value as it already does with
`provider_url`.

Fixes #5236 (no need to change Go upstream)
Related to #5246
2019-05-17 16:00:54 +02:00
..
cast Make docshelper run again 2018-12-27 10:08:44 +01:00
collections tpl: Provide more detailed errors in Where 2019-04-27 09:54:22 +02:00
compare tpl/compare: Fix nil compare in eq/ne for interface values 2019-04-29 18:43:44 +02:00
crypto tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
data all: Apply staticcheck recommendations 2019-03-24 16:14:51 +01:00
encoding tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
fmt tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
hugo tpl: Fix hugo package name and add godocs 2019-04-27 22:44:57 +02:00
images tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
inflect tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
internal tpl: Fix test to pass with gccgo 2018-11-09 08:54:08 +01:00
lang tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
math all: Apply staticcheck recommendations 2019-03-24 16:14:51 +01:00
os all: Apply staticcheck recommendations 2019-03-24 16:14:51 +01:00
partials tpl: Allow the partial template func to return any type 2019-04-02 10:30:24 +02:00
path tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
reflect tpl: Fix hugo package name and add godocs 2019-04-27 22:44:57 +02:00
resources resources: Move resource interfaces into its own package 2019-01-02 14:25:37 +01:00
safe tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
site tpl: Fix hugo package name and add godocs 2019-04-27 22:44:57 +02:00
strings tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
templates tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
time tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
tplimpl tpl: Fix internal templates usage of safeHTMLAttr 2019-05-17 16:00:54 +02:00
transform hugolib: Consider summary in front matter for .Summary 2019-04-05 19:11:04 +02:00
urls tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
template.go tpl/tplimpl: Handle late transformation of templates 2019-04-16 21:24:09 +02:00
template_info.go tpl: Allow the partial template func to return any type 2019-04-02 10:30:24 +02:00
template_test.go commands: Show server error info in browser 2018-10-16 22:10:56 +02:00