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