shish 6 anos atrás
pai
commit
b6ea079e64
1 arquivos alterados com 11 adições e 0 exclusões
  1. 11 0
      app/saas/controllers/CsController.php

+ 11 - 0
app/saas/controllers/CsController.php

@@ -22,5 +22,16 @@ class CsController extends BaseController
 		$return = wxUtil::sendMsg($content, $merchant, $openId);
 		$return = wxUtil::sendMsg($content, $merchant, $openId);
 		print_r($return);
 		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;
+	}
 
 
 }
 }