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 2
2
3
3
namespace Yajra \DataTables \Processors ;
4
4
5
+ use Illuminate \Contracts \Support \Htmlable ;
5
6
use Illuminate \Support \Arr ;
6
7
use Yajra \DataTables \Utilities \Helper ;
7
8
@@ -253,7 +254,7 @@ protected function escapeColumns(array $output)
253
254
}
254
255
255
256
/**
256
- * Escape all string values of row.
257
+ * Escape all string or Htmlable values of row.
257
258
*
258
259
* @param array $row
259
260
* @return array
@@ -263,7 +264,7 @@ protected function escapeRow(array $row)
263
264
$ arrayDot = array_filter (Arr::dot ($ row ));
264
265
foreach ($ arrayDot as $ key => $ value ) {
265
266
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 ;
267
268
}
268
269
}
269
270
You can’t perform that action at this time.
0 commit comments