Update single_url.ts
This commit is contained in:
parent
36abe0f7f9
commit
ca2bf9cc12
@ -89,7 +89,6 @@ export async function scrapSingleUrl(
|
|||||||
soup("script, style, iframe, noscript, meta, head").remove();
|
soup("script, style, iframe, noscript, meta, head").remove();
|
||||||
if (pageOptions.onlyMainContent) {
|
if (pageOptions.onlyMainContent) {
|
||||||
// remove any other tags that are not in the main content
|
// remove any other tags that are not in the main content
|
||||||
soup("").remove();
|
|
||||||
excludeNonMainTags.forEach((tag) => {
|
excludeNonMainTags.forEach((tag) => {
|
||||||
soup(tag).remove();
|
soup(tag).remove();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user