mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
增加ua_htmlspecialchars_decode函数兼容PHP8.1
This commit is contained in:
@@ -101,7 +101,7 @@
|
||||
</div>
|
||||
<div class="value">
|
||||
<div class="article-item">
|
||||
{$row.describe|raw|htmlspecialchars_decode}
|
||||
{$row.describe|raw|ua_htmlspecialchars_decode}
|
||||
</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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user