Magento Static Block as Managable DOM

getLayout()->createBlock('cms/block')->setBlockId('full_brochure')->toHtml();;
            $doc = new DOMDocument();
            @$doc->loadHTML($page_data);
            $tags = $doc->getElementsByTagName('a');

            foreach ($tags as $tag) {
                echo 'getAttribute('href')) . '">
                Full Brochure
                

'.strip_tags($tag->nodeValue).'

'; break; } ?>

Posted

in

by