mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:47:02 +02:00
better stripping styles from html chunks
This commit is contained in:
@ -562,7 +562,7 @@ class ModelSearchMessage extends Model {
|
||||
}
|
||||
|
||||
if($text_html == 1){
|
||||
$chunk = preg_replace("/\<style\>([\w\W]+)\<\/style\>/i", "", $chunk);
|
||||
$chunk = preg_replace("/\<style[\w\W]{0,}\>([\w\W]+)\<\/style\>/i", "", $chunk);
|
||||
|
||||
if(ENABLE_REMOTE_IMAGES == 0) {
|
||||
$chunk = preg_replace("/style([\s]{0,}=[\s]{0,})\"([^\"]+)/", "style=\"xxxx", $chunk);
|
||||
|
Reference in New Issue
Block a user