mirror of
https://github.com/YGGverse/Yo.git
synced 2026-04-01 18:25:29 +00:00
fix tags replacement condition
This commit is contained in:
parent
8ee053e4a6
commit
f2dbd1599c
1 changed files with 4 additions and 4 deletions
|
|
@ -388,10 +388,10 @@ foreach($index->search('')
|
||||||
],
|
],
|
||||||
preg_replace(
|
preg_replace(
|
||||||
[
|
[
|
||||||
'/<script([^>]*)>([^<]*)<\/script>/is', // strip js content
|
'/<script([^>]*)>([\s\S]*?)<\/script>/i', // strip js content
|
||||||
'/<style([^>]*)>([^<]*)<\/style>/is', // strip css content
|
'/<style([^>]*)>([\s\S]*?)<\/style>/i', // strip css content
|
||||||
'/<pre([^>]*)>([^<]*)<\/pre>/is', // strip code content
|
'/<pre([^>]*)>([\s\S]*?)<\/pre>/i', // strip code content
|
||||||
'/<code([^>]*)>([^<]*)<\/code>/is',
|
'/<code([^>]*)>([\s\S]*?)<\/code>/i',
|
||||||
],
|
],
|
||||||
'',
|
'',
|
||||||
html_entity_decode(
|
html_entity_decode(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue