在edit以前把html实体重新转成字符

This commit is contained in:
2024-12-06 15:24:04 +08:00
parent 769cecd0b1
commit daa005f029

View File

@@ -236,17 +236,20 @@ include_once("kindeditor.php") ;
$description = $_POST['description']; $description = $_POST['description'];
// $description = str_replace("<p>", "", $description); // $description = str_replace("<p>", "", $description);
// $description = str_replace("</p>", "<br />", $description); // $description = str_replace("</p>", "<br />", $description);
$description = str_replace(",", "&#44;", $description); // $description = str_replace(",", "&#44;", $description);
$description = html_entity_decode($description,ENT_QUOTES,"UTF-8");
$input = $_POST['input']; $input = $_POST['input'];
// $input = str_replace("<p>", "", $input); // $input = str_replace("<p>", "", $input);
// $input = str_replace("</p>", "<br />", $input); // $input = str_replace("</p>", "<br />", $input);
$input = str_replace(",", "&#44;", $input); // $input = str_replace(",", "&#44;", $input);
$input = html_entity_decode($input,ENT_QUOTES,"UTF-8");
$output = $_POST['output']; $output = $_POST['output'];
// $output = str_replace("<p>", "", $output); // $output = str_replace("<p>", "", $output);
// $output = str_replace("</p>", "<br />", $output); // $output = str_replace("</p>", "<br />", $output);
$output = str_replace(",", "&#44;", $output); // $output = str_replace(",", "&#44;", $output);
$output = html_entity_decode($output,ENT_QUOTES,"UTF-8");
$sample_input = $_POST['sample_input']; $sample_input = $_POST['sample_input'];
$sample_output = $_POST['sample_output']; $sample_output = $_POST['sample_output'];
@@ -256,7 +259,8 @@ include_once("kindeditor.php") ;
$hint = $_POST['hint']; $hint = $_POST['hint'];
// $hint = str_replace("<p>", "", $hint); // $hint = str_replace("<p>", "", $hint);
// $hint = str_replace("</p>", "<br />", $hint); // $hint = str_replace("</p>", "<br />", $hint);
$hint = str_replace(",", "&#44;", $hint); // $hint = str_replace(",", "&#44;", $hint);
$hint = html_entity_decode($hint,ENT_QUOTES,"UTF-8");
$source = $_POST['source']; $source = $_POST['source'];
$remote_oj= $_POST['remote_oj']; $remote_oj= $_POST['remote_oj'];