File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Catalog/view/frontend/templates/product/view/opengraph Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 9
9
10
10
<meta property="og:type" content="product" />
11
11
<meta property="og:title"
12
- content="<?= /* @noEscape */ $ block ->stripTags ($ block ->getProduct ()->getName ()) ?> " />
12
+ content="<?= $ block ->escapeHtmlAttr ( $ block -> stripTags ($ block ->getProduct ()->getName () )) ?> " />
13
13
<meta property="og:image"
14
14
content="<?= $ block ->escapeUrl ($ block ->getImage ($ block ->getProduct (), 'product_base_image ' )->getImageUrl ()) ?> " />
15
15
<meta property="og:description"
16
- content="<?= /* @noEscape */ $ block ->stripTags ($ block ->getProduct ()->getShortDescription ()) ?> " />
16
+ content="<?= $ block ->escapeHtmlAttr ( $ block -> stripTags ($ block ->getProduct ()->getShortDescription () )) ?> " />
17
17
<meta property="og:url" content="<?= $ block ->escapeUrl ($ block ->getProduct ()->getProductUrl ()) ?> " />
18
18
<?php if ($ priceAmount = $ block ->getProduct ()->getPriceInfo ()->getPrice (\Magento \Catalog \Pricing \Price \FinalPrice::PRICE_CODE )->getAmount ()) :?>
19
19
<meta property="product:price:amount" content="<?= $ block ->escapeHtmlAttr ($ priceAmount ) ?> "/>
You can’t perform that action at this time.
0 commit comments