From 22515f189d56c4bb140c50a379fd4730f209d9f9 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Thu, 1 Feb 2024 17:36:00 +0800 Subject: [PATCH] 1 --- app/common/model/server/ServerRecovery.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/common/model/server/ServerRecovery.php b/app/common/model/server/ServerRecovery.php index 3f0e57f0..b9df9e02 100644 --- a/app/common/model/server/ServerRecovery.php +++ b/app/common/model/server/ServerRecovery.php @@ -73,4 +73,14 @@ class ServerRecovery extends BaseModel ->order($sort_arr) ->paginate($listRows); } + + /** + * 文章详情:HTML实体转换回普通字符 + * @param $value + * @return string + */ + public function getContentAttr($value): string + { + return htmlspecialchars_decode($value); + } } \ No newline at end of file