OR
Add following code in di.xml
<type name="Magento\Quote\Model\Cart\CartTotalRepository">
<plugin name="checkout_item_sidebar"
type="SR\MagentoCommunity\Plugin\Quote\Model\Cart\CartTotalRepository" sortOrder="1"/>
</type>
app/code/SR/MagentoCommunity/Plugin/Quote/Model/Cart/CartTotalRepository.php
<?php
namespace SR\MagentoCommunity\Plugin\Quote\Model\Cart;
use Magento\Framework\Serialize\Serializer\Json;
class CartTotalRepository
{
/**
* @var Json
*/
private $json;
/**
* DefaultConfigProvider constructor.
* @param Json $json
*/
public function __construct(
Json $json
) {
$this->json = $json;
}
public function afterGet(
\Magento\Quote\Model\Cart\CartTotalRepository $subject,
$quoteTotals
) {
$quoteItems = $quoteTotals->getItems();
$items = [];
/** @var \Magento\Quote\Model\Cart\Totals\Item $item */
foreach ($quoteItems as $index => $item) {
if ($options = $item->getOptions()) {
$options = $this->json->unserialize($options);
foreach ($options as $key => $option) {
if (isset($option['full_view'])) {
$options[$key]['full_view'] = html_entity_decode($option['full_view']);
}
}
$item->setOptions($this->json->serialize($options));
}
$items[$index] = $item;
}
$quoteTotals->setItems($items);
return $quoteTotals;
}
}