I have below code (which is at .phtml page) which echo store view selected and i want to take that value which is echo by below code and display it in an html page. please help how to do that. thanks.
<?php
$ObjectManager = \Magento\Framework\App\ObjectManager::getInstance();
$storeManager = $ObjectManager->get('\Magento\Store\Model\StoreManagerInterface');
$selectedStore = $storeManager->getStore()->getName();
?>