From dd8011a4aa6dafad5f918475e9a679f2c18e6378 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 14 Aug 2025 23:11:27 +0200 Subject: [PATCH] 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 `` in the ``, 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 --- internal/template/templates/common/feed_list.html | 2 +- internal/template/templates/common/item_meta.html | 8 ++------ .../templates/views/choose_subscription.html | 2 +- internal/template/templates/views/entry.html | 12 ++++-------- internal/template/templates/views/feed_entries.html | 2 +- 5 files changed, 9 insertions(+), 17 deletions(-) diff --git a/internal/template/templates/common/feed_list.html b/internal/template/templates/common/feed_list.html index 21fe71a7..345b8f2e 100644 --- a/internal/template/templates/common/feed_list.html +++ b/internal/template/templates/common/feed_list.html @@ -35,7 +35,7 @@