In Magento 1 I can do the following:
$response = $observer->getEvent()->getControllerAction()->getResponse(); if(!$response) { return $this; } $html = $response->getBody();
How can I do the same in Magento 2?
Solved! Go to Solution.
This is answer for my question
http://magento.stackexchange.com/questions/108579/how-can-i-get-response-getbody-in-observer-event
How to get the HTTP response body for the current controller in Magento 2? https://mage2.pro/t/1056
This is answer for my question
http://magento.stackexchange.com/questions/108579/how-can-i-get-response-getbody-in-observer-event