fix(feeds.js): preserve content of inactive (href='#') links rather than remove them altogether

This commit is contained in:
Cory Dransfeldt 2025-05-13 04:41:15 -07:00
parent 2f52ee2253
commit f7f9596dd1
No known key found for this signature in database
3 changed files with 9 additions and 7 deletions

View file

@ -11,7 +11,9 @@ export default {
let href = link.getAttribute("href");
if (href.startsWith("#")) {
link.remove();
const span = document.createElement("span");
span.textContent = link.textContent;
link.replaceWith(span);
return;
}