fix: remove select element from markdown to walk around turndown performance issue

This commit is contained in:
Yanlong Wang 2024-08-09 10:55:36 +08:00
parent e4ef6cb0f9
commit eb74e9c6f8
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37

View File

@ -151,7 +151,7 @@ export class CrawlerHost extends RPCHost {
} as any);
if (!options?.noRules) {
turnDownService.addRule('remove-irrelevant', {
filter: ['meta', 'style', 'script', 'noscript', 'link', 'textarea'],
filter: ['meta', 'style', 'script', 'noscript', 'link', 'textarea', 'select'],
replacement: () => ''
});
turnDownService.addRule('truncate-svg', {