1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-16 18:01:37 +00:00
miniflux-v2/internal/template
jvoisin dd8011a4aa refactor(template): remove some useless attributes
When `target="_blank"` is used, it has the same effect than rel="noopener",
so we can remove the latter. Moreover, since we're already setting `<meta
name="referrer" content="no-referrer" />` in the `<head>`, there is no need to
set it on every single link in the HTML, as we're rendering everything in the
same origin.

Note that we need to keep adding those in the sanitizer, the entry content HTML
can be consumed by third-party clients via the Miniflux/GoogleReader/Fever API.

See https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel/noopener
and https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy#integration_with_html
2025-08-15 17:55:49 -07:00
..
templates refactor(template): remove some useless attributes 2025-08-15 17:55:49 -07:00
engine.go refactor(template): make use of template.ParseFS 2025-08-05 20:07:49 -07:00
functions.go refactor(template): use modern svg directive 2025-08-11 18:31:16 -07:00
functions_test.go refactor(template): remove unused functions and reduce the complexity of truncate function 2025-07-17 20:53:41 -07:00