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 74ab8c3 commit 40e2672Copy full SHA for 40e2672
app/code/Magento/Catalog/ViewModel/Product/Breadcrumbs.php
@@ -104,12 +104,12 @@ public function getProductName()
104
*/
105
public function getJsonConfiguration()
106
{
107
- return $this->json->serialize([
+ return $this->escaper->escapeHtml($this->json->serialize([
108
'breadcrumbs' => [
109
'categoryUrlSuffix' => $this->escaper->escapeHtml($this->getCategoryUrlSuffix()),
110
'userCategoryPathInUrl' => (int)$this->isCategoryUsedInProductUrl(),
111
- 'product' => $this->escaper->escapeHtml($this->getProductName())
+ 'product' => $this->getProductName()
112
]
113
- ]);
+ ]));
114
}
115
0 commit comments