From b5cd219f4777bc1b88c8c61e438940ae3809ec3f Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 21 Mar 2024 00:34:25 +0200 Subject: [PATCH] strip css content from index --- src/cli/document/crawl.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index b20be42..829f25a 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -361,7 +361,10 @@ foreach($index->search('') PHP_EOL . ' ', ], preg_replace( - '/]*)>([^<]*)<\/script>/is', // strip js content + [ + '/]*)>([^<]*)<\/script>/is', // strip js content + '/]*)>([^<]*)<\/style>/is', // strip css content + ], '', html_entity_decode( $value