perf: 去除通知里的 

This commit is contained in:
kuaifan
2022-07-10 21:16:46 +08:00
parent d0d6965c52
commit 4561efc3ce
2 changed files with 5 additions and 4 deletions

View File

@@ -502,11 +502,11 @@ class WebSocketDialogMsg extends AbstractModel
$text = preg_replace("/<img\s+class=\"emoticon\"[^>]*?alt=\"(\S+)\"[^>]*?>/", "[$1]", $text);
$text = preg_replace("/<img\s+class=\"emoticon\"[^>]*?>/", "[表情]", $text);
$text = preg_replace("/<img\s+class=\"browse\"[^>]*?>/", "[图片]", $text);
if ($preserveHtml) {
return $text;
} else {
return strip_tags($text);
if (!$preserveHtml) {
$text = strip_tags($text);
$text = str_replace("&nbsp;", " ", $text);
}
return $text;
}
/**