hugo/tpl/tplimpl/embedded/templates/shortcodes
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
..
__h_simple_assets.html Fix vimeo_simple thumb scaling 2018-05-30 11:30:28 +02:00
figure.html tpl: Fix whitespace issue 2018-11-27 18:15:10 +01:00
gist.html tpl/tmplimpl: Add MIME type to embedded JS 2018-08-06 23:11:53 +02:00
highlight.html tpl: Set permission of embedded templates to 0644 2018-07-09 12:57:08 -06:00
instagram.html tpl: Set permission of embedded templates to 0644 2018-07-09 12:57:08 -06:00
instagram_simple.html fix typo instagram_simple 2018-05-27 11:06:40 +02:00
param.html tpl: Add "param" shortcode 2018-11-27 17:34:03 +01:00
ref.html Add file (line/col) info to ref/relref errors 2018-11-01 21:06:35 +01:00
relref.html Add file (line/col) info to ref/relref errors 2018-11-01 21:06:35 +01:00
twitter.html tpl: Set permission of embedded templates to 0644 2018-07-09 12:57:08 -06:00
twitter_simple.html Fixes #4798 2018-05-31 18:05:38 +02:00
vimeo.html tpl: Set permission of embedded templates to 0644 2018-07-09 12:57:08 -06:00
vimeo_simple.html tpl: Fix internal templates usage of safeHTMLAttr 2019-05-17 16:00:54 +02:00
youtube.html tpl: Set permission of embedded templates to 0644 2018-07-09 12:57:08 -06:00