mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-01-12 16:00:11 +01:00
better stripping styles from html chunks
This commit is contained in:
parent
845f60bece
commit
68b236ae77
@ -562,7 +562,7 @@ class ModelSearchMessage extends Model {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($text_html == 1){
|
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) {
|
if(ENABLE_REMOTE_IMAGES == 0) {
|
||||||
$chunk = preg_replace("/style([\s]{0,}=[\s]{0,})\"([^\"]+)/", "style=\"xxxx", $chunk);
|
$chunk = preg_replace("/style([\s]{0,}=[\s]{0,})\"([^\"]+)/", "style=\"xxxx", $chunk);
|
||||||
|
Loading…
Reference in New Issue
Block a user