Files
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
..
2018-12-27 10:08:44 +01:00
2018-11-30 08:56:30 +01:00
2018-11-30 08:56:30 +01:00
2018-11-30 08:56:30 +01:00
2018-11-30 08:56:30 +01:00
2018-11-30 08:56:30 +01:00
2018-11-09 08:54:08 +01:00
2018-11-30 08:56:30 +01:00
2019-03-24 16:14:51 +01:00
2018-11-30 08:56:30 +01:00
2018-11-30 08:56:30 +01:00
2018-11-30 08:56:30 +01:00
2018-11-30 08:56:30 +01:00
2018-11-30 08:56:30 +01:00