diff --git a/app/design/frontend/Magento/luma/Magento_LayeredNavigation/templates/layer/state.phtml b/app/design/frontend/Magento/luma/Magento_LayeredNavigation/templates/layer/state.phtml index 7ebecb4c99f2f..5e941694c963b 100644 --- a/app/design/frontend/Magento/luma/Magento_LayeredNavigation/templates/layer/state.phtml +++ b/app/design/frontend/Magento/luma/Magento_LayeredNavigation/templates/layer/state.phtml @@ -11,6 +11,7 @@ * Category layered navigation state * * @var $block \Magento\LayeredNavigation\Block\Navigation\State + * @var \Magento\Framework\Escaper $escaper */ ?> getActiveFilters() ?> @@ -20,30 +21,30 @@ role="heading" aria-level="2" data-role="title" - data-count="">escapeHtml(__('Now Shopping by')) ?> + data-count="">escapeHtml(__('Now Shopping by')) ?>
  1. - escapeHtml(__($_filter->getName())) ?> - escapeHtml($block->stripTags($_filter->getLabel())) ?> + escapeHtml(__($_filter->getName())) ?> + escapeHtml($block->stripTags($_filter->getLabel())) ?> getClearLinkUrl(); - $currentFilterName = $block->escapeHtmlAttr(__($_filter->getName()) . " " . $block->stripTags($_filter->getLabel())); + $currentFilterName = $escaper->escapeHtmlAttr(__($_filter->getName()) . " " . $block->stripTags($_filter->getLabel())); if ($clearLinkUrl): ?> - - escapeHtml($_filter->getFilter()->getClearLinkText()) ?> + title="escapeHtmlAttr($_filter->getFilter()->getClearLinkText()) ?>" + href="escapeUrl($clearLinkUrl) ?>"> + escapeHtml($_filter->getFilter()->getClearLinkText()) ?> - "> - escapeHtml(__('Remove This Item')) ?> + "> + escapeHtml(__('Remove This Item')) ?>
  2. diff --git a/app/design/frontend/Magento/luma/Magento_LayeredNavigation/templates/layer/view.phtml b/app/design/frontend/Magento/luma/Magento_LayeredNavigation/templates/layer/view.phtml index 9bdb2d4252932..27c90c31f8910 100644 --- a/app/design/frontend/Magento/luma/Magento_LayeredNavigation/templates/layer/view.phtml +++ b/app/design/frontend/Magento/luma/Magento_LayeredNavigation/templates/layer/view.phtml @@ -9,6 +9,7 @@ * Category layered navigation * * @var $block \Magento\LayeredNavigation\Block\Navigation + * @var \Magento\Framework\Escaper $escaper */ ?> @@ -29,15 +30,15 @@ }'> getLayer()->getState()->getFilters()) ?>
    - escapeHtml(__('Shop By')); ?> + escapeHtml(__('Shop By')); ?>
    getChildHtml('state') ?> getLayer()->getState()->getFilters()) : ?> @@ -45,7 +46,7 @@ getFilters() as $filter) : ?> getItemsCount()) : ?> - escapeHtml(__('Shopping Options')) ?> + escapeHtml(__('Shopping Options')) ?>
    render($filter) ?>