strip css content from index

This commit is contained in:
yggverse 2024-03-21 00:34:25 +02:00
parent 5588668728
commit b5cd219f47

View File

@ -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