File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
app/code/Magento/Review/view/frontend/templates Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,11 @@ $product = $block->getProductData();
41
41
<?php $ ratingCode = $ block ->escapeHtml ($ _rating ->getRatingCode ()) ?>
42
42
<div class="rating-summary item">
43
43
<span class="rating-label">
44
- <span><?= $ ratingCode ?> </span>
44
+ <span><?= /* @noEscape */ $ ratingCode ?> </span>
45
45
</span>
46
- <div class="rating-result <?= $ ratingCode ?> " title="<?= /* @noEscape */ $ rating ?> %">
46
+ <div class="rating-result <?= /* @noEscape */ $ ratingCode ?> "
47
+ title="<?= /* @noEscape */ $ rating ?> %"
48
+ >
47
49
<span>
48
50
<span><?= /* @noEscape */ $ rating ?> %</span>
49
51
</span>
Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ $urlForm = $block->getReviewsUrl() . '#review-form';
19
19
<?php if ($ rating ):?>
20
20
<div class="rating-summary">
21
21
<span class="label"><span><?= $ block ->escapeHtml (__ ('Rating ' )) ?> :</span></span>
22
- <div class="rating-result" id="rating-result_<?= /* @noEscape */ $ block ->getProduct ()->getId () ?> " title="<?= $ block ->escapeHtmlAttr ($ rating ); ?> %">
22
+ <div class="rating-result"
23
+ id="rating-result_<?= /* @noEscape */ $ block ->getProduct ()->getId () ?> "
24
+ title="<?= $ block ->escapeHtmlAttr ($ rating ); ?> %"
25
+ >
23
26
<span>
24
27
<span>
25
28
<span itemprop="ratingValue"><?= $ block ->escapeHtml ($ rating ); ?>
You can’t perform that action at this time.
0 commit comments