Skip to content

Commit b643094

Browse files
committed
MC-17864: Finalize @escapeNotVerified elimination
1 parent cf20b91 commit b643094

File tree

1 file changed

+4
-11
lines changed
  • app/design/frontend/Magento/luma/Magento_LayeredNavigation/templates/layer

1 file changed

+4
-11
lines changed

app/design/frontend/Magento/luma/Magento_LayeredNavigation/templates/layer/view.phtml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<?php if ($block->canShowBlock()) : ?>
1616
<div class="block filter" id="layered-filter-block" data-mage-init='
1717
{
18-
"collapsible":
18+
"collapsible":
1919
{
2020
"openedState": "active",
2121
"collapsible": true,
@@ -26,7 +26,6 @@
2626
"element": "body"
2727
}
2828
}
29-
3029
}'>
3130
<?php $filtered = count($block->getLayer()->getState()->getFilters()) ?>
3231
<div class="block-title filter-title" data-count="<?= /* @noEscape */ $filtered ?>">
@@ -46,9 +45,7 @@
4645
<?php foreach ($block->getFilters() as $filter) : ?>
4746
<?php if ($filter->getItemsCount()) : ?>
4847
<?php if (!$wrapOptions) : ?>
49-
<strong role="heading" aria-level="2" class="block-subtitle filter-subtitle">
50-
<?= $block->escapeHtml(__('Shopping Options')) ?>
51-
</strong>
48+
<strong role="heading" aria-level="2" class="block-subtitle filter-subtitle"><?= $block->escapeHtml(__('Shopping Options')) ?></strong>
5249
<div class="filter-options" id="narrow-by-list" data-role="content" data-mage-init='
5350
{
5451
"accordion":
@@ -62,12 +59,8 @@
6259
<?php $wrapOptions = true;
6360
endif; ?>
6461
<div data-role="collapsible" class="filter-options-item">
65-
<div data-role="title" class="filter-options-title">
66-
<?= $block->escapeHtml(__($filter->getName())) ?>
67-
</div>
68-
<div data-role="content" class="filter-options-content">
69-
<?= /* @noEscape */ $block->getChildBlock('renderer')->render($filter) ?>
70-
</div>
62+
<div data-role="title" class="filter-options-title"><?= $block->escapeHtml(__($filter->getName())) ?></div>
63+
<div data-role="content" class="filter-options-content"><?= /* @noEscape */ $block->getChildBlock('renderer')->render($filter) ?></div>
7164
</div>
7265
<?php endif; ?>
7366
<?php endforeach; ?>

0 commit comments

Comments
 (0)