diff --git a/views/static/feed-item.js b/views/static/feed-item.js index 3d81434..5db2b29 100644 --- a/views/static/feed-item.js +++ b/views/static/feed-item.js @@ -56,6 +56,10 @@ class FeedItem extends HTMLElement { .then(item => { template.innerHTML += item.Content || item.Description; this.shadowRoot.appendChild(template.content.cloneNode(true)); + [...this.shadowRoot.querySelectorAll('a[href^=http]')].forEach(a => { + a.setAttribute("target", "_blank"); + a.setAttribute("rel", "noopener"); + }) }) }