Skip to content

Commit

Permalink
fix: 🐛 remove noscript tag from web page loader
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpetrov committed Dec 7, 2023
1 parent 8196e58 commit f855799
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/lib/loaders/web-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const getTextFromHTML = async (html: string) => {
$('link').remove();
$('svg').remove();
$('img').remove();
$('noscript').remove();
const text = $('body').text();

return text?.trim();
Expand Down

1 comment on commit f855799

@vercel
Copy link

@vercel vercel bot commented on f855799 Dec 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.