File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22
33namespace Yajra \DataTables \Processors ;
44
5+ use Illuminate \Contracts \Support \Htmlable ;
56use Illuminate \Support \Arr ;
67use Yajra \DataTables \Utilities \Helper ;
78
@@ -253,7 +254,7 @@ protected function escapeColumns(array $output)
253254 }
254255
255256 /**
256- * Escape all string values of row.
257+ * Escape all string or Htmlable values of row.
257258 *
258259 * @param array $row
259260 * @return array
@@ -263,7 +264,7 @@ protected function escapeRow(array $row)
263264 $ arrayDot = array_filter (Arr::dot ($ row ));
264265 foreach ($ arrayDot as $ key => $ value ) {
265266 if (! in_array ($ key , $ this ->rawColumns )) {
266- $ arrayDot [$ key ] = is_string ($ value ) ? e ($ value ) : $ value ;
267+ $ arrayDot [$ key ] = ( is_string ($ value) || $ value instanceof Htmlable ) ? e ($ value ) : $ value ;
267268 }
268269 }
269270
You can’t perform that action at this time.
0 commit comments