diff --git a/app/Models/WebSocketDialogMsg.php b/app/Models/WebSocketDialogMsg.php index b4a5b437c..1ed73c77c 100644 --- a/app/Models/WebSocketDialogMsg.php +++ b/app/Models/WebSocketDialogMsg.php @@ -236,11 +236,12 @@ class WebSocketDialogMsg extends AbstractModel $text = str_replace($matchs[0][$key], "[:{$matchChar[1]}:{$matchId[1]}:{$matchValye[1]}:]", $text); } // 过滤标签 - $text = strip_tags($text, '

'); - $text = preg_replace("/\/i", "

", $text); + $text = strip_tags($text, '