mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-09 19:42:47 +08:00
增加ua_htmlspecialchars_decode函数兼容PHP8.1
This commit is contained in:
@@ -101,7 +101,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="value">
|
<div class="value">
|
||||||
<div class="article-item">
|
<div class="article-item">
|
||||||
{$row.describe|raw|htmlspecialchars_decode}
|
{$row.describe|raw|ua_htmlspecialchars_decode}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -246,6 +246,19 @@ if (!function_exists('ua_htmlentities')) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!function_exists('htmlspecialchars_decode')) {
|
||||||
|
function ua_htmlspecialchars_decode($string, $flag = ENT_QUOTES | ENT_SUBSTITUTE)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (is_null($string)) {
|
||||||
|
$string = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
return ua_htmlspecialchars_decode($string, $flag);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function build_upload_url($url, $upload_type = null)
|
function build_upload_url($url, $upload_type = null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -166,7 +166,7 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
{:htmlspecialchars_decode(sysconfig('site','site_js_insert'))}
|
{:ua_htmlspecialchars_decode(sysconfig('site','site_js_insert'))}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user