By Default Magento automatically adds
html tags to product descriptions for display on the customer
interface. If you have created a nice description with the WYSIWYG
Editor or imported HTML descriptions you most likely want to remove this
behavior. Luckily this is not hard to do.
- Find the file "description.phtml" here:
app/design/frontend/default//template/catalog/product/view/description.phtml
- Remove the "nl2br" tag
Before:
helper('catalog/output')->productAttribute($this->getProduct(), nl2br($this->getProduct()->getDescription()), 'description') ?>
After:
helper('catalog/output')->productAttribute($this->getProduct(), $this->getProduct()->getDescription()), 'description' ?>
No comments:
Post a Comment