Skip to content

Commit 0af74c0

Browse files
author
Garrett
committed
Fix: Instruct Cheerio to parse <noscript> tags
See website-scraper#484
1 parent 3bd2555 commit 0af74c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resource-handler/html/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function prepareToLoad ($, resource) {
8181
}
8282

8383
function loadTextToCheerio (text) {
84-
return cheerio.load(text);
84+
return cheerio.load(text, { scriptingEnabled: false });
8585
}
8686

8787
export default HtmlResourceHandler;

0 commit comments

Comments
 (0)