diff --git a/app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Options/Options.php b/app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Options/Options.php index f53f1e97a872d..9e09fa1be2d9b 100644 --- a/app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Options/Options.php +++ b/app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Options/Options.php @@ -264,7 +264,7 @@ protected function _prepareSystemAttributeOptionValues($option, $inputType, $def foreach ($this->getStores() as $store) { $storeId = $store->getId(); $value['store' . $storeId] = $storeId == - \Magento\Store\Model\Store::DEFAULT_STORE_ID ? $valuePrefix . $this->escapeHtml($option['label']) : ''; + \Magento\Store\Model\Store::DEFAULT_STORE_ID ? $valuePrefix . $this->_escaper->escapeHtml($option['label']) : ''; } return [$value]; @@ -292,7 +292,7 @@ protected function _prepareUserDefinedAttributeOptionValues($option, $inputType, $storeValues = $this->getStoreOptionValues($storeId); $value['store' . $storeId] = isset( $storeValues[$optionId] - ) ? $this->escapeHtml( + ) ? $this->_escaper->escapeHtml( $storeValues[$optionId] ) : ''; }