fix(feeds.js): preserve content of inactive (href='#') links rather than remove them altogether
This commit is contained in:
parent
2f52ee2253
commit
f7f9596dd1
3 changed files with 9 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue