From 6e26558ad165b66641e4788f4fdc65ec73d5f2e3 Mon Sep 17 00:00:00 2001 From: lkddi Date: Fri, 27 Feb 2026 02:24:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8D=A2=E8=A1=8C=EF=BC=9A?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=20whitespace-pre-wrap=EF=BC=8C=E6=94=B9?= =?UTF-8?q?=E7=94=A8=20nl2br=20=E8=BE=93=E5=87=BA=20br=20=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=EF=BC=8C=E6=A8=A1=E6=9D=BF=E6=97=A0=E7=BC=A9=E8=BF=9B?= =?UTF-8?q?=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/guestbook/index.blade.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/views/guestbook/index.blade.php b/resources/views/guestbook/index.blade.php index 16d1244..4332dea 100644 --- a/resources/views/guestbook/index.blade.php +++ b/resources/views/guestbook/index.blade.php @@ -222,8 +222,7 @@ {{-- 正文内容 --}}
-

- {!! e($msg->text_body) !!}

+

{!! nl2br(e($msg->text_body)) !!}

{{-- 回复TA按钒 --}}