mirror of
https://github.com/YGGverse/Yo.git
synced 2025-02-05 19:34:14 +00:00
strip css content from index
This commit is contained in:
parent
5588668728
commit
b5cd219f47
@ -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…
x
Reference in New Issue
Block a user