File tree 1 file changed +10
-7
lines changed
app/code/Magento/Catalog/view/frontend/templates/product 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
?>
7
- <?php /** @var $block \Magento\Catalog\Block\Product\Image */ ?>
7
+ <?php
8
+ /** @var $block \Magento\Catalog\Block\Product\Image */
9
+ /** @var $escaper \Magento\Framework\Escaper */
10
+ ?>
8
11
9
- <img class="photo image <?= $ block ->escapeHtmlAttr ($ block ->getClass ()) ?> "
10
- <?= $ block ->escapeHtml ($ block ->getCustomAttributes ()) ?>
11
- src="<?= $ block ->escapeUrl ($ block ->getImageUrl ()) ?> "
12
- width="<?= $ block ->escapeHtmlAttr ($ block ->getWidth ()) ?> "
13
- height="<?= $ block ->escapeHtmlAttr ($ block ->getHeight ()) ?> "
14
- alt="<?= /* @noEscape */ $ block ->stripTags ($ block ->getLabel (), null , true ) ?> " />
12
+ <img class="photo image <?= $ escaper ->escapeHtmlAttr ($ block ->getClass ()) ?> "
13
+ <?= $ escaper ->escapeHtml ($ block ->getCustomAttributes ()) ?>
14
+ src="<?= $ escaper ->escapeUrl ($ block ->getImageUrl ()) ?> "
15
+ width="<?= $ escaper ->escapeHtmlAttr ($ block ->getWidth ()) ?> "
16
+ height="<?= $ escaper ->escapeHtmlAttr ($ block ->getHeight ()) ?> "
17
+ alt="<?= /* @noEscape */ $ block ->stripTags ($ block ->getLabel (), null , true ) ?> " />
You can’t perform that action at this time.
0 commit comments