diff --git a/src/classes/forums/Forum.ts b/src/classes/forums/Forum.ts index 3b85ea5..b8f5643 100644 --- a/src/classes/forums/Forum.ts +++ b/src/classes/forums/Forum.ts @@ -45,7 +45,7 @@ class Forum { .getAttribute("href")! .split("/") .splice(1)[3]; - const title = child.querySelector("strong")!.innerText; + const title = child.querySelector("strong")!.text; const replyCount = Number( child.querySelector(".item span")!.innerText.split(" ")[0] ); diff --git a/src/classes/forums/Topic.ts b/src/classes/forums/Topic.ts index 0e14ccc..ad54036 100644 --- a/src/classes/forums/Topic.ts +++ b/src/classes/forums/Topic.ts @@ -71,7 +71,7 @@ class Topic { parsableContent: parsableContent, author: child .getElementsByTagName("header")[0] - .getElementsByTagName("h1")[0].innerText + .getElementsByTagName("h1")[0].text }); posts.push(post); });