diff --git a/src/app/actions.ts b/src/app/actions.ts index 538108d..dad6ec7 100644 --- a/src/app/actions.ts +++ b/src/app/actions.ts @@ -115,6 +115,7 @@ export async function extractMetaData(url: string, keyword?: string) { let keywordCount: number | null = null; const trimmedKeyword = keyword?.trim(); if (trimmedKeyword) { + $("script, style").remove(); const bodyText = $("body").text(); const regex = new RegExp(trimmedKeyword, "gi"); const matches = bodyText.match(regex);