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