Another way to HTML the address:
public function getCustomerAddressHtml()
{
$address = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBillingAddress();
return $address->format('html');
}
Reference the file config.xml in app/code/core/Mage/Customer/etc, you can format the address in 'text', 'oneline', 'pdf', 'js_tempalte'. You can also create a customized format in your own config:
<global>
<customer>
<address>
<formats>
<exthtml translate="title" module="extendedcustomer">
<title>EXTHTML</title>
<htmlEscape>true</htmlEscape>
</exthtml>
</formats>
</address>
</customer>
</global>
<default>
<customer>
<address_templates>
<exthtml><![CDATA[{{if street1}}{{var street1}}<br />{{/if}}
{{depend street2}}{{var street2}}<br />{{/depend}}
{{depend street3}}{{var street3}}<br />{{/depend}}
{{depend street4}}{{var street4}}<br />{{/depend}}
{{if city}}{{var city}}, {{/if}}{{if region}}{{var region}}, {{/if}}{{if postcode}}{{var postcode}}{{/if}}<br/>
{{depend telephone}}T: {{var telephone}}{{/depend}}
{{depend fax}}<br/>F: {{var fax}}{{/depend}}]]></exthtml>
</address_templates>
</customer>
</default>