Browse Source

resolved #1153

Bruce Lam 4 years ago
parent
commit
ba82dfd394
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Support/Helper.php

+ 3 - 0
src/Support/Helper.php

@@ -844,6 +844,9 @@ class Helper
      */
     public static function htmlEntityEncode($item)
     {
+        if (is_object($item)) {
+            $item = json_decode(json_encode($item), true);
+        }
         if (is_array($item)) {
             array_walk_recursive($item, function (&$value) {
                 $value = htmlentities($value);