Skip to content

Commit

Permalink
Update escaping method and docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleybrecher committed May 31, 2021
1 parent 0430a80 commit 345758e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
/**
* Pager template
*
* @see \Magento\Theme\Block\Html\Pager
* @var \Magento\Theme\Block\Html\Pager $block
* @var \Magento\Framework\Escaper $escaper
*/
?>
<?php if ($block->getCollection()->getSize()): ?>
Expand Down Expand Up @@ -61,7 +62,7 @@
<li class="item">
<a class="page previous jump"
title=""
aria-label="<?= $block->escapeHtml(__('Skip to page %1', $block->getNextJumpPage())) ?>"
aria-label="<?= $escaper->escapeHtmlAttr(__('Skip to page %1', $block->getNextJumpPage())) ?>"
href="<?= $block->escapeUrl($block->getPreviousJumpUrl()) ?>">
<span>...</span>
</a>
Expand Down Expand Up @@ -90,7 +91,7 @@
<li class="item">
<a class="page next jump"
title=""
aria-label="<?= $block->escapeHtml(__('Skip to page %1', $block->getNextJumpPage())) ?>"
aria-label="<?= $escaper->escapeHtmlAttr(__('Skip to page %1', $block->getNextJumpPage())) ?>"
href="<?= $block->escapeUrl($block->getNextJumpUrl()) ?>">
<span>...</span>
</a>
Expand Down

0 comments on commit 345758e

Please sign in to comment.