Skip to content

Commit 2d236f7

Browse files
committed
change escapeHtmlAttr to escapeHtml for names.
1 parent 0480d06 commit 2d236f7

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/GoogleGtag/Block

1 file changed

+2
-2
lines changed

app/code/Magento/GoogleGtag/Block/Ga.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ public function getOrdersTrackingData(): array
148148
foreach ($order->getAllVisibleItems() as $item) {
149149
$result['products'][] = [
150150
'item_id' => $this->_escaper->escapeHtml($item->getSku()),
151-
'item_name' => $this->_escaper->escapeHtmlAttr($item->getName()),
152-
'affiliation' => $this->_escaper->escapeHtmlAttr(
151+
'item_name' => $this->_escaper->escapeHtml($item->getName()),
152+
'affiliation' => $this->_escaper->escapeHtml(
153153
$this->_storeManager->getStore()->getFrontendName()
154154
),
155155
'price' => round((float) $item->getPrice(), 2),

0 commit comments

Comments
 (0)