Skip to content

Commit f3a3e13

Browse files
committed
Add htmlentities when exporting data. Fix issue yajra#341.
1 parent 64f43c6 commit f3a3e13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Transformers/DataTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function buildColumnByCollection(array $row, Collection $columns, $ty
4343
if ($column[$type]) {
4444
$data = array_get($row, $column['data']);
4545

46-
$results[$column['title']] = $type == 'exportable' ? strip_tags($data) : $data;
46+
$results[$column['title']] = $type == 'exportable' ? e(strip_tags($data)) : $data;
4747
}
4848
}
4949

0 commit comments

Comments
 (0)