用replace强转

This commit is contained in:
2025-04-11 13:59:23 +08:00
parent 40896f384e
commit aea427bb3f

View File

@@ -39,7 +39,10 @@
<div class="ui existing segment">
<pre v-if="escape" style="margin-top: 0; margin-bottom: 0; " id="errtxt"><?php
$xxx = htmlspecialchars_decode($view_reinfo,ENT_QUOTES);
$xxx = htmlspecialchars_decode($xxx,ENT_QUOTES);
// 把&lt;变成<
$xxx =str_replace("&lt;","<",$xxx);
// 把&gt;变成>
$xxx =str_replace("&gt;",">",$xxx);
echo $xxx;
?>
</pre>