@@ -22,5 +22,16 @@ class CsController extends BaseController
$return = wxUtil::sendMsg($content, $merchant, $openId);
print_r($return);
}
+
+ public function html_out($str)
+ {
+ if (function_exists('htmlspecialchars_decode')) {
+ $str = htmlspecialchars_decode($str);
+ } else {
+ $str = html_entity_decode($str);
+ }
+ $str = stripslashes($str);
+ return $str;