Browse Source

strip code content

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

2
src/cli/document/crawl.php

@ -364,6 +364,8 @@ foreach($index->search('') @@ -364,6 +364,8 @@ foreach($index->search('')
[
'/<script([^>]*)>([^<]*)<\/script>/is', // strip js content
'/<style([^>]*)>([^<]*)<\/style>/is', // strip css content
'/<pre([^>]*)>([^<]*)<\/pre>/is', // strip code content
'/<code([^>]*)>([^<]*)<\/code>/is',
],
'',
html_entity_decode(

Loading…
Cancel
Save