mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 09:45:30 +00:00
strip css content from index
This commit is contained in:
parent
5588668728
commit
b5cd219f47
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue