Skip to content

Commit 41212f9

Browse files
authored
Merge pull request #144 from Simon-BEE/DataArrayTransformer-trim-decoded-content
DataArrayTransformer Trim decoded content
2 parents 5c8fb97 + b1779de commit 41212f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Transformers/DataArrayTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected function buildColumnByCollection(array $row, Collection $columns, $typ
6262
protected function decodeContent($data)
6363
{
6464
try {
65-
$decoded = html_entity_decode(strip_tags($data), ENT_QUOTES, 'UTF-8');
65+
$decoded = html_entity_decode(trim(strip_tags($data)), ENT_QUOTES, 'UTF-8');
6666

6767
return str_replace("\xc2\xa0", ' ', $decoded);
6868
} catch (\Throwable $e) {

0 commit comments

Comments
 (0)