用htmlspecialchars试试

This commit is contained in:
2025-04-11 13:54:06 +08:00
parent 0a09151ed8
commit 84cf46b5c0

View File

@@ -37,7 +37,10 @@
<strong ><?php echo "$MSG_ERROR_INFO";?> </strong>
</p>
<div class="ui existing segment">
<pre v-if="escape" style="margin-top: 0; margin-bottom: 0; " id="errtxt"><?php echo html_entity_decode($view_reinfo,ENT_QUOTES,"UTF-8")?></pre>
<pre v-if="escape" style="margin-top: 0; margin-bottom: 0; " id="errtxt"><?php
if(isset($view_reinfo))
echo htmlspecialchars($view_reinfo,ENT_QUOTES,"UTF-8");
?></pre>
</div>
</div>