Skip to content

Commit 1ca44a0

Browse files
MAGETWO-67496: Escape product name for Display Actual Price
1 parent 7faf048 commit 1ca44a0

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Msrp/view/base/templates/product/price

1 file changed

+1
-1
lines changed

app/code/Magento/Msrp/view/base/templates/product/price/msrp.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ if ($product->isSaleable()) {
5656
$data = ['addToCart' => [
5757
'origin'=> 'msrp',
5858
'popupId' => '#' . $popupId,
59-
'productName' => $block->escapeHtml($product->getName()),
59+
'productName' => $block->escapeJs($block->escapeHtml($product->getName())),
6060
'productId' => $productId,
6161
'productIdInput' => 'input[type="hidden"][name="product"]',
6262
'realPrice' => $block->getRealPriceHtml(),

0 commit comments

Comments
 (0)