Browse Source

strip css content from index

main
yggverse 8 months ago
parent
commit
b5cd219f47
  1. 5
      src/cli/document/crawl.php

5
src/cli/document/crawl.php

@ -361,7 +361,10 @@ foreach($index->search('') @@ -361,7 +361,10 @@ foreach($index->search('')
PHP_EOL . ' ',
],
preg_replace(
'/<script([^>]*)>([^<]*)<\/script>/is', // strip js content
[
'/<script([^>]*)>([^<]*)<\/script>/is', // strip js content
'/<style([^>]*)>([^<]*)<\/style>/is', // strip css content
],
'',
html_entity_decode(
$value

Loading…
Cancel
Save