Explorar el Código

resolved #1153

Bruce Lam hace 4 años
padre
commit
ba82dfd394
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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);