from `htmlEscape` to `safeHTML` on attr. `title`
The attribute `title` of HTML elements **cannot render HTML tags**. Then, the correct is to use safeHTML rather then htmlEscape. This way we can use HTML tag on `caption` (`featureImageCap`) without rendering escaped HTML (like `<cite>`) on `title` `figure` tag attribute.
+1 −1 · 1 file changed
-
layouts/partials/figure.html+1 −1
@@ -60,7 +60,7 @@ src="{{ $fileWeb }}" {{ end }} {{ with $cap }} - title="{{ htmlEscape $cap }}" + title="{{ safeHTML $cap }}" {{ end }} />