diff --git a/app/admin/view/mall/goods/read.html b/app/admin/view/mall/goods/read.html index 8a40057..d627b86 100644 --- a/app/admin/view/mall/goods/read.html +++ b/app/admin/view/mall/goods/read.html @@ -101,7 +101,7 @@
- {$row.describe|raw|htmlspecialchars_decode} + {$row.describe|raw|ua_htmlspecialchars_decode}
diff --git a/app/common.php b/app/common.php index b64d038..50a7ad5 100644 --- a/app/common.php +++ b/app/common.php @@ -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) { diff --git a/view/index/welcome.html b/view/index/welcome.html index f7d36ad..6fb7db5 100644 --- a/view/index/welcome.html +++ b/view/index/welcome.html @@ -166,7 +166,7 @@ }) }) - {:htmlspecialchars_decode(sysconfig('site','site_js_insert'))} + {:ua_htmlspecialchars_decode(sysconfig('site','site_js_insert'))} \ No newline at end of file