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.
1 parent fbd4188 commit c00a749Copy full SHA for c00a749
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