mirror of
https://github.com/YGGverse/Yo.git
synced 2025-01-27 23:14:16 +00:00
strip code content
This commit is contained in:
parent
b5cd219f47
commit
e09440b44a
@ -364,6 +364,8 @@ foreach($index->search('')
|
||||
[
|
||||
'/<script([^>]*)>([^<]*)<\/script>/is', // strip js content
|
||||
'/<style([^>]*)>([^<]*)<\/style>/is', // strip css content
|
||||
'/<pre([^>]*)>([^<]*)<\/pre>/is', // strip code content
|
||||
'/<code([^>]*)>([^<]*)<\/code>/is',
|
||||
],
|
||||
'',
|
||||
html_entity_decode(
|
||||
|
Loading…
x
Reference in New Issue
Block a user