Skip to content

Commit 51aa539

Browse files
fixed HTML characters issue at getAlt() function
1 parent adc4105 commit 51aa539

File tree

1 file changed

+3
-2
lines changed
  • app/code/Magento/Catalog/Ui/Component/Listing/Columns

1 file changed

+3
-2
lines changed

app/code/Magento/Catalog/Ui/Component/Listing/Columns/Thumbnail.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ public function prepareDataSource(array $dataSource)
7777

7878
return $dataSource;
7979
}
80-
8180
/**
8281
* Get Alt
8382
*
@@ -88,6 +87,8 @@ public function prepareDataSource(array $dataSource)
8887
protected function getAlt($row)
8988
{
9089
$altField = $this->getData('config/altField') ?: self::ALT_FIELD;
91-
return $row[$altField] ?? null;
90+
return html_entity_decode($row[$altField],ENT_QUOTES, "UTF-8") ?? null;
91+
9292
}
9393
}
94+

0 commit comments

Comments
 (0)