From 6b53650a96da0d702e32e00a5880849b2751aaa6 Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Sat, 23 Nov 2024 17:33:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E5=8A=A8=E6=8A=8Amarkdown=E7=9A=84?= =?UTF-8?q?=E5=8F=8C=E6=8D=A2=E8=A1=8C=E6=8D=A2=E6=88=90
?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/admin/problem_add.php | 1 + web/admin/problem_edit.php | 1 + 2 files changed, 2 insertions(+) diff --git a/web/admin/problem_add.php b/web/admin/problem_add.php index e677422..dbd26e5 100644 --- a/web/admin/problem_add.php +++ b/web/admin/problem_add.php @@ -20,6 +20,7 @@ $description = $_POST['description']; //$description = str_replace("

", "", $description); //$description = str_replace("

", "
", $description); $description = str_replace(",", ",", $description); +$description = str_replace("\n\n", "\n
", $description); $input = $_POST['input']; //$input = str_replace("

", "", $input); diff --git a/web/admin/problem_edit.php b/web/admin/problem_edit.php index 886f50d..95e03ab 100644 --- a/web/admin/problem_edit.php +++ b/web/admin/problem_edit.php @@ -237,6 +237,7 @@ include_once("kindeditor.php") ; // $description = str_replace("

", "", $description); // $description = str_replace("

", "
", $description); $description = str_replace(",", ",", $description); + $description = str_replace("\n\n", "\n
", $description); $input = $_POST['input']; // $input = str_replace("

", "", $input);