Skip to content

Commit 0a4df28

Browse files
committed
MAGETWO-56357: Eliminate @escapeNotVerified in Search-related Modules
1 parent 8a035fd commit 0a4df28

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/LayeredNavigation/view/frontend/templates/layer

1 file changed

+2
-2
lines changed

app/code/Magento/LayeredNavigation/view/frontend/templates/layer/filter.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
<li class="item">
2121
<?php if ($filterItem->getCount() > 0): ?>
2222
<a href="<?= $block->escapeUrl($filterItem->getUrl()) ?>">
23-
<?= $block->escapeHtml($filterItem->getLabel()) ?>
23+
<?= /* @noEscape */ $filterItem->getLabel() ?>
2424
<?php if ($this->helper('\Magento\Catalog\Helper\Data')->shouldDisplayProductCountOnLayer()): ?>
2525
<span class="count"><?= /* @noEscape */ (int)$filterItem->getCount() ?><span class="filter-count-label">
2626
<?php if ($filterItem->getCount() == 1):?> <?= $block->escapeHtml(__('item')) ?><?php else:?> <?= $block->escapeHtml(__('item')) ?><?php endif;?></span></span>
2727
<?php endif; ?>
2828
</a>
2929
<?php else:?>
30-
<?= $block->escapeHtml($filterItem->getLabel()) ?>
30+
<?= /* @noEscape */ $filterItem->getLabel() ?>
3131
<?php if ($this->helper('\Magento\Catalog\Helper\Data')->shouldDisplayProductCountOnLayer()): ?>
3232
<span class="count"><?= /* @noEscape */ (int)$filterItem->getCount() ?><span class="filter-count-label">
3333
<?php if ($filterItem->getCount() == 1):?><?= $block->escapeHtml(__('items')) ?><?php else:?><?= $block->escapeHtml(__('items')) ?><?php endif;?></span></span>

0 commit comments

Comments
 (0)