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