|
5 | 5 | */
|
6 | 6 |
|
7 | 7 | /** @var \Magento\Sales\Block\Adminhtml\Order\View\Tab\History $block */
|
| 8 | +/** @var \Magento\Framework\Escaper $escaper */ |
8 | 9 | ?>
|
9 | 10 | <section class="admin__page-section edit-order-comments">
|
10 | 11 | <ul class="note-list">
|
|
15 | 16 | <span class="note-list-status"><?= /* @noEscape */ $block->getItemTitle($_item) ?></span>
|
16 | 17 | <?php if ($block->isItemNotified($_item, false)): ?>
|
17 | 18 | <span class="note-list-customer">
|
18 |
| - <?= $block->escapeHtml(__('Customer')) ?> |
| 19 | + <?= $escaper->escapeHtml(__('Customer')) ?> |
19 | 20 | <?php if ($block->isCustomerNotificationNotApplicable($_item)): ?>
|
20 | 21 | <span class="note-list-customer-notapplicable">
|
21 |
| - <?= $block->escapeHtml(__('Notification Not Applicable')) ?> |
| 22 | + <?= $escaper->escapeHtml(__('Notification Not Applicable')) ?> |
22 | 23 | </span>
|
23 | 24 | <?php elseif ($block->isItemNotified($_item)): ?>
|
24 | 25 | <span class="note-list-customer-notified">
|
25 |
| - <?= $block->escapeHtml(__('Notified')) ?> |
| 26 | + <?= $escaper->escapeHtml(__('Notified')) ?> |
26 | 27 | </span>
|
27 | 28 | <?php else: ?>
|
28 | 29 | <span class="note-list-customer-not-notified">
|
29 |
| - <?= $block->escapeHtml(__('Not Notified')) ?> |
| 30 | + <?= $escaper->escapeHtml(__('Not Notified')) ?> |
30 | 31 | </span>
|
31 | 32 | <?php endif; ?>
|
32 | 33 | </span>
|
|
36 | 37 | </ul>
|
37 | 38 | <div class="edit-order-comments-block">
|
38 | 39 | <div class="edit-order-comments-block-title">
|
39 |
| - <?= $block->escapeHtml(__('Notes for this Order')) ?> |
| 40 | + <?= $escaper->escapeHtml(__('Notes for this Order')) ?> |
40 | 41 | </div>
|
41 | 42 | <?php foreach ($block->getFullHistory() as $_item): ?>
|
42 | 43 | <?php if ($_comment = $block->getItemComment($_item)): ?>
|
43 | 44 | <div class="comments-block-item">
|
44 | 45 | <div class="comments-block-item-comment">
|
45 |
| - <?= /* @noEscape */ $block->escapeHtml($_comment) ?> |
| 46 | + <?= /* @noEscape */ $escaper->escapeHtml($_comment) ?> |
46 | 47 | </div>
|
47 | 48 | <span class="comments-block-item-date-time">
|
48 |
| - <?= $block->escapeHtml(__('Comment added')) ?> |
| 49 | + <?= $escaper->escapeHtml(__('Comment added')) ?> |
49 | 50 | <?= /* @noEscape */ $block->getItemCreatedAt($_item) ?>
|
50 | 51 | <?= /* @noEscape */ $block->getItemCreatedAt($_item, 'time') ?>
|
51 | 52 | </span>
|
|
0 commit comments