Filter out empty paragraphs
This commit is contained in:
parent
d5d24b0e7e
commit
ef02f13ef4
@ -64,6 +64,11 @@ class FeedItem extends HTMLElement {
|
||||
[...this.shadowRoot.querySelectorAll('a[href^=http]')].forEach(a => {
|
||||
a.setAttribute("target", "_blank");
|
||||
a.setAttribute("rel", "noopener");
|
||||
});
|
||||
[...this.shadowRoot.querySelectorAll('p')].forEach(p => {
|
||||
if (p.innerText.trim() == "") {
|
||||
p.remove();
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user