remove html tags from product meta description

magento CE 1.6.1
maybe you’ve noticed that if your product description contains HTML tags (created via WYSIWYG) editor, those HTML tags are not stripped out in meta tag description.
this meta tag is set in:
line 70:
to fix this issue, simply create local version of this file and add strip_tags function:
$headBlock->setDescription(Mage::helper('core/string')->substr(strip_tags($product->getDescription()), 0, 255));

Leave a Reply