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('')
PHP_EOL . ' ', PHP_EOL . ' ',
], ],
preg_replace( preg_replace(
'/<script([^>]*)>([^<]*)<\/script>/is', // strip js content [
'/<script([^>]*)>([^<]*)<\/script>/is', // strip js content
'/<style([^>]*)>([^<]*)<\/style>/is', // strip css content
],
'', '',
html_entity_decode( html_entity_decode(
$value $value

Loading…
Cancel
Save