Skip to content

Magento_Analytics: avoid using deprecated escape* methods from Abstra… #31667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,30 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

/**
* @var \Magento\Framework\Escaper $escaper
*/

?>

<section class="dashboard-advanced-reports" data-index="dashboard-advanced-reports">
<div class="dashboard-advanced-reports-description">
<header class="dashboard-advanced-reports-title">
<?= $block->escapeHtml(__('Advanced Reporting')) ?>
<?= $escaper->escapeHtml(__('Advanced Reporting')) ?>
</header>
<div class="dashboard-advanced-reports-content">
<?= $block->escapeHtml(__('Gain new insights and take command of your business\' performance,' .
<?= $escaper->escapeHtml(__('Gain new insights and take command of your business\' performance,' .
' using our dynamic product, order, and customer reports tailored to your customer data.')) ?>
</div>
</div>
<div class="dashboard-advanced-reports-actions">
<a href="<?= $block->escapeUrl($block->getUrl('analytics/reports/show')) ?>"
<a href="<?= $escaper->escapeUrl($block->getUrl('analytics/reports/show')) ?>"
target="_blank"
class="action action-advanced-reports"
data-index="analytics-service-link"
title="<?= $block->escapeHtmlAttr(__('Go to Advanced Reporting')) ?>">
<span><?= $block->escapeHtml(__('Go to Advanced Reporting')) ?></span>
title="<?= $escaper->escapeHtmlAttr(__('Go to Advanced Reporting')) ?>">
<span><?= $escaper->escapeHtml(__('Go to Advanced Reporting')) ?></span>
</a>
</div>
</section>