Magento Certified Developer GuideCategory: 3.2 BlocksHow can block output be caught using an observer?
Manish Prakash Staff asked 5 years ago

In the “core/abstract” block we have this code during the final rendering process

Mage::dispatchEvent('core_block_abstract_to_html_after',array('block' => $this, 'transport' => self::$_transportObject));
$html = self::$_transportObject->getHtml();

So we can listen for the event ‘core_block_abstract_to_html_after’ and change the html output being generated.