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 4f87be6 + 66e858e commit c352078Copy full SHA for c352078
app/code/Magento/Catalog/Helper/Product/View.php
@@ -130,7 +130,7 @@ private function preparePageMetadata(ResultPage $resultPage, $product)
130
if ($description) {
131
$pageConfig->setDescription($description);
132
} else {
133
- $pageConfig->setDescription($this->string->substr($product->getDescription(), 0, 255));
+ $pageConfig->setDescription($this->string->substr(strip_tags($product->getDescription()), 0, 255));
134
}
135
136
if ($this->_catalogProduct->canUseCanonicalTag()) {
0 commit comments