We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d18fda2 + 8c7620e commit 36f2604Copy full SHA for 36f2604
app/code/Magento/Catalog/Block/Product/View.php
@@ -145,7 +145,7 @@ protected function _prepareLayout()
145
if ($description) {
146
$this->pageConfig->setDescription($description);
147
} else {
148
- $this->pageConfig->setDescription($this->string->substr($product->getDescription(), 0, 255));
+ $this->pageConfig->setDescription($this->string->substr(strip_tags($product->getDescription()), 0, 255));
149
}
150
if ($this->_productHelper->canUseCanonicalTag()) {
151
$this->pageConfig->addRemotePageAsset(
0 commit comments