Browse Source

fix tags replacement condition

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

8
src/cli/document/crawl.php

@ -388,10 +388,10 @@ foreach($index->search('')
], ],
preg_replace( preg_replace(
[ [
'/<script([^>]*)>([^<]*)<\/script>/is', // strip js content '/<script([^>]*)>([\s\S]*?)<\/script>/i', // strip js content
'/<style([^>]*)>([^<]*)<\/style>/is', // strip css content '/<style([^>]*)>([\s\S]*?)<\/style>/i', // strip css content
'/<pre([^>]*)>([^<]*)<\/pre>/is', // strip code content '/<pre([^>]*)>([\s\S]*?)<\/pre>/i', // strip code content
'/<code([^>]*)>([^<]*)<\/code>/is', '/<code([^>]*)>([\s\S]*?)<\/code>/i',
], ],
'', '',
html_entity_decode( html_entity_decode(

Loading…
Cancel
Save