better stripping styles from html chunks

This commit is contained in:
SJ 2014-09-04 14:58:06 +02:00
parent 845f60bece
commit 68b236ae77

View File

@ -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);