Skip to content

Commit dd2e6c9

Browse files
fix(search): update title extraction to use textContent for indexing
1 parent 14d3c46 commit dd2e6c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/build_index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export async function buildSearchIndex() {
3737
})
3838
const dom = new JSDOM.JSDOM(data)
3939
const title =
40-
dom.window.document.querySelector("title")?.innerHTML ||
40+
dom.window.document.querySelector("title")?.textContent ||
4141
"Page " + webPath
4242
const description =
4343
dom.window.document

0 commit comments

Comments
 (0)