将题目中的html实体转成html字符方便输出

This commit is contained in:
2024-12-06 16:23:06 +08:00
parent babdec7c32
commit a9e9729f40

View File

@@ -123,12 +123,14 @@ if ($pr_flag) {
<div class="column">
<h4 class="ui top attached block header"><?php echo $MSG_Description ?></h4>
<div id="description" class="ui bottom attached segment font-content">
<pre class='md auto_select'>
<span class='md auto_select'>
<?php
echo bbcode_to_html($row['description']);
echo bbcode_to_html(
htmlentities ($row['description'], ENT_QUOTES, 'UTF-8')
);
?>
</pre>
</span>
</div>
</div>
</div>
@@ -137,14 +139,14 @@ if ($pr_flag) {
<div class="column">
<h4 class="ui top attached block header"><?php echo $MSG_Input ?></h4>
<div id='input' class="ui bottom attached segment font-content">
<pre class='md auto_select'>
<span class='md auto_select'>
<?php echo
bbcode_to_html(
$row['input']
htmlentities ($row['input'], ENT_QUOTES, 'UTF-8')
);
?>
</pre>
</span>
</div>
</div>
</div>
@@ -154,14 +156,14 @@ if ($pr_flag) {
<div class="column">
<h4 class="ui top attached block header"><?php echo $MSG_Output ?></h4>
<div id='output' class="ui bottom attached segment font-content">
<pre class='md auto_select'>
<?php echo
<span class='md auto_select'>
<?php echo
bbcode_to_html(
$row['output']
htmlentities ($row['output'], ENT_QUOTES, 'UTF-8')
);
?>
</pre>
</span>
</div>
</div>
</div>
@@ -211,14 +213,14 @@ if ($pr_flag) {
<div class="column">
<h4 class="ui top attached block header"><?php echo $MSG_HINT ?></h4>
<div id='hint' class="ui bottom attached segment font-content hint">
<pre class='md auto_select'>
<span class='md auto_select'>
<?php echo
bbcode_to_html(
$row['hint']
htmlentities ($row['hint'], ENT_QUOTES, 'UTF-8')
);
?>
</pre>
</span>
</div>
</div>
</div>