HTML Displaying With Price In Magento 1.4.x

After upgrading to Magento 1.4.x, you may notice “<span>…</span>” HTML tag being displayed around price information within the “Additional Information” section on product pages.  This is a known bug introduced in the most recent releases of Magento.  While it will probably be fixed in the next release, who wants to wait around for that?

To fix this bug, fire up your text editor and open /app/code/core/Mage/Catalog/Helper/Output.php, then add the following to the end of the “If” statement on line 106 (Magento 1.4.0) or line 123 in later versions:

 && ($attribute->getFrontendInput() != 'price')

This will ensure that the <span> disappears.  Now back to work.