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 6bc5f27 + 789744d commit 1ecfd23Copy full SHA for 1ecfd23
app/code/Magento/Catalog/Helper/Product/View.php
@@ -131,7 +131,7 @@ private function preparePageMetadata(ResultPage $resultPage, $product)
131
if ($description) {
132
$pageConfig->setDescription($description);
133
} else {
134
- $pageConfig->setDescription($this->string->substr($product->getDescription(), 0, 255));
+ $pageConfig->setDescription($this->string->substr(strip_tags($product->getDescription()), 0, 255));
135
}
136
137
if ($this->_catalogProduct->canUseCanonicalTag()) {
0 commit comments