Skip to content

Commit 28159a3

Browse files
Update Table.php
1 parent a49618a commit 28159a3

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Eav/Model/Entity/Attribute/Source

1 file changed

+3
-1
lines changed

app/code/Magento/Eav/Model/Entity/Attribute/Source/Table.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ public function getOptionText($value)
167167
$optionsText = [];
168168
foreach ($options as $item) {
169169
if (in_array($item['value'], $value)) {
170-
$optionsText[] = $this->escaper->escapeHtml($item['label']);
170+
$optionsText[] = ($this->_attribute->getIsHtmlAllowedOnFront())
171+
? $item['label']
172+
: $this->escaper->escapeHtml($item['label']);
171173
}
172174
}
173175

0 commit comments

Comments
 (0)