Fix: use textContent instead of inntertext, fixes tests

This commit is contained in:
Pieter Vander Vennet 2024-10-03 19:11:15 +02:00
parent 17e95ca594
commit 591e992839

View file

@ -33,7 +33,7 @@ export default class TitleHandler {
const title = Utils.SubstituteKeys(titleUnsubbed, tags)
const el = document.createElement("span")
el.innerHTML = title
return el.innerText + " | " + defaultTitle
return el.textContent + " | " + defaultTitle
},
[Locale.language]