In Magento 1 I can do the following:
$response = $observer->getEvent()->getControllerAction()->getResponse();
$html = $response->getBody();
How can I do the same in Magento 2?
Go to Solution.
This is answer for my question
View solution in original post
How to get the HTTP response body for the current controller in Magento 2? https://mage2.pro/t/1056