Skip to content

Commit 7d13998

Browse files
committed
Use html_entity_decode instead of htmlentities.
1 parent 94c94c5 commit 7d13998

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Transformers/DataTransformer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ protected function buildColumnByCollection(array $row, Collection $columns, $ty
4444
$title = $column['title'];
4545
$data = array_get($row, $column['data']);
4646
if ($type == 'exportable') {
47-
$data = e(strip_tags($data));
48-
$title = e(strip_tags($title));
47+
$data = html_entity_decode(strip_tags($data), ENT_QUOTES, 'UTF-8');
48+
$title = html_entity_decode(strip_tags($title), ENT_QUOTES, 'UTF-8');
4949
}
5050

5151
$results[$title] = $data;

0 commit comments

Comments
 (0)