From daa005f02950a5998f48447f3ca22eccd9ab8f78 Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Fri, 6 Dec 2024 15:24:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8edit=E4=BB=A5=E5=89=8D=E6=8A=8Ahtml?= =?UTF-8?q?=E5=AE=9E=E4=BD=93=E9=87=8D=E6=96=B0=E8=BD=AC=E6=88=90=E5=AD=97?= =?UTF-8?q?=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/admin/problem_edit.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/web/admin/problem_edit.php b/web/admin/problem_edit.php index 6cd24a4..ac456a4 100644 --- a/web/admin/problem_edit.php +++ b/web/admin/problem_edit.php @@ -236,17 +236,20 @@ include_once("kindeditor.php") ; $description = $_POST['description']; // $description = str_replace("

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

", "
", $description); - $description = str_replace(",", ",", $description); + // $description = str_replace(",", ",", $description); + $description = html_entity_decode($description,ENT_QUOTES,"UTF-8"); $input = $_POST['input']; // $input = str_replace("

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

", "
", $input); - $input = str_replace(",", ",", $input); + // $input = str_replace(",", ",", $input); + $input = html_entity_decode($input,ENT_QUOTES,"UTF-8"); $output = $_POST['output']; // $output = str_replace("

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

", "
", $output); - $output = str_replace(",", ",", $output); + // $output = str_replace(",", ",", $output); + $output = html_entity_decode($output,ENT_QUOTES,"UTF-8"); $sample_input = $_POST['sample_input']; $sample_output = $_POST['sample_output']; @@ -256,7 +259,8 @@ include_once("kindeditor.php") ; $hint = $_POST['hint']; // $hint = str_replace("

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

", "
", $hint); - $hint = str_replace(",", ",", $hint); + // $hint = str_replace(",", ",", $hint); + $hint = html_entity_decode($hint,ENT_QUOTES,"UTF-8"); $source = $_POST['source']; $remote_oj= $_POST['remote_oj'];