mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +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 . ' ',
|
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…
Add table
Add a link
Reference in a new issue