strip code content

This commit is contained in:
yggverse 2024-03-21 00:38:24 +02:00
parent b5cd219f47
commit e09440b44a

View File

@ -364,6 +364,8 @@ foreach($index->search('')
[ [
'/<script([^>]*)>([^<]*)<\/script>/is', // strip js content '/<script([^>]*)>([^<]*)<\/script>/is', // strip js content
'/<style([^>]*)>([^<]*)<\/style>/is', // strip css content '/<style([^>]*)>([^<]*)<\/style>/is', // strip css content
'/<pre([^>]*)>([^<]*)<\/pre>/is', // strip code content
'/<code([^>]*)>([^<]*)<\/code>/is',
], ],
'', '',
html_entity_decode( html_entity_decode(