diff --git a/src/Show/Field.php b/src/Show/Field.php index bdacba7df..52ed61434 100755 --- a/src/Show/Field.php +++ b/src/Show/Field.php @@ -407,6 +407,15 @@ public function json() return $this->unescape()->as(function ($value) use ($field) { $content = is_string($value) ? json_decode($value, true) : $value; + if (is_array($content)) { + array_walk($content, function (&$v) { + $v = strval($v); + $v = htmlspecialchars($v); + }); + } else { + $content = htmlspecialchars($content); + } + $field->wrap(false); return Dump::make($content);