阻止html合并换行
This commit is contained in:
@@ -13,7 +13,7 @@ require_once ("../include/problem.php");
|
||||
// contest_id
|
||||
$title = $_POST['title'];
|
||||
// $title = str_replace(",", ",", $title);
|
||||
$title = html_entity_decode($title, ENT_QUOTES, 'UTF-8');
|
||||
// $title = html_entity_decode($title, ENT_QUOTES, 'UTF-8');
|
||||
|
||||
$time_limit = $_POST['time_limit'];
|
||||
$memory_limit = $_POST['memory_limit'];
|
||||
@@ -22,19 +22,19 @@ $description = $_POST['description'];
|
||||
//$description = str_replace("<p>", "", $description);
|
||||
//$description = str_replace("</p>", "<br />", $description);
|
||||
// $description = str_replace(",", ",", $description);
|
||||
$description = html_entity_decode($description, ENT_QUOTES, 'UTF-8');
|
||||
// $description = html_entity_decode($description, ENT_QUOTES, 'UTF-8');
|
||||
|
||||
$input = $_POST['input'];
|
||||
//$input = str_replace("<p>", "", $input);
|
||||
//$input = str_replace("</p>", "<br />", $input);
|
||||
// $input = str_replace(",", ",", $input);
|
||||
$input = html_entity_decode($input, ENT_QUOTES, 'UTF-8');
|
||||
// $input = html_entity_decode($input, ENT_QUOTES, 'UTF-8');
|
||||
|
||||
$output = $_POST['output'];
|
||||
//$output = str_replace("<p>", "", $output);
|
||||
//$output = str_replace("</p>", "<br />", $output);
|
||||
// $output = str_replace(",", ",", $output);
|
||||
$output = html_entity_decode($output, ENT_QUOTES, 'UTF-8');
|
||||
// $output = html_entity_decode($output, ENT_QUOTES, 'UTF-8');
|
||||
|
||||
$sample_input = $_POST['sample_input'];
|
||||
$sample_output = $_POST['sample_output'];
|
||||
@@ -50,7 +50,7 @@ $hint = $_POST['hint'];
|
||||
//$hint = str_replace("<p>", "", $hint);
|
||||
//$hint = str_replace("</p>", "<br />", $hint);
|
||||
// $hint = str_replace(",", ",", $hint);
|
||||
$hint = html_entity_decode($hint, ENT_QUOTES, 'UTF-8');
|
||||
// $hint = html_entity_decode($hint, ENT_QUOTES, 'UTF-8');
|
||||
|
||||
$source = $_POST['source'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user