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 10
10
?>
11
11
12
12
<meta property="og:type" content="og:product" />
13
- <meta property="og:title" content="<?php echo $ block ->escapeHtml ($ block ->getProduct ()->getName ()); ?> " />
13
+ <meta property="og:title" content="<?php echo $ block ->escapeHtmlAttr ($ block ->stripTags ( $ block -> getProduct ()->getName () )); ?> " />
14
14
<meta property="og:image" content="<?php echo $ block ->escapeUrl ($ block ->getImage ($ block ->getProduct (), 'product_base_image ' )->getImageUrl ()); ?> " />
15
- <meta property="og:description" content="<?php echo $ block ->escapeHtml ($ block ->getProduct ()->getShortDescription ()); ?> " />
15
+ <meta property="og:description" content="<?php echo $ block ->escapeHtmlAttr ($ block ->stripTags ( $ block -> getProduct ()->getShortDescription () )); ?> " />
16
16
<meta property="og:url" content="<?php echo $ block ->escapeUrl ($ block ->getProduct ()->getProductUrl ()); ?> " />
17
17
<?php if ($ priceAmount = $ block ->getProduct ()->getFinalPrice ()):?>
18
18
<meta property="product:price:amount" content="<?php /* @escapeNotVerified */ echo $ priceAmount ; ?> "/>
You can’t perform that action at this time.
0 commit comments