Magento – how to replace variables with values in text
If you have some text which you want to display and this text contains {{ }} kind of variables, to replace these variables with their actual values use this:
Mage::helper('cms')->getBlockTemplateProcessor()->filter($text)
Where $text contains the actual text to be displayed.