|
5 | 5 | */
|
6 | 6 |
|
7 | 7 | /** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
|
8 |
| -/** @var \Magento\Framework\Escaper $escaper */ |
9 | 8 | ?>
|
10 | 9 | <?php if ($_entity = $block->getEntity()): ?>
|
11 | 10 | <div id="comments_block" class="edit-order-comments">
|
12 | 11 | <div class="order-history-block">
|
13 | 12 | <div class="admin__field field-row">
|
14 | 13 | <label class="admin__field-label"
|
15 |
| - for="history_comment"><?= $escaper->escapeHtml(__('Comment Text')) ?></label> |
| 14 | + for="history_comment"><?= $block->escapeHtml(__('Comment Text')) ?></label> |
16 | 15 | <div class="admin__field-control">
|
17 | 16 | <textarea name="comment[comment]"
|
18 | 17 | class="admin__control-textarea"
|
|
31 | 30 | id="history_notify"
|
32 | 31 | value="1" />
|
33 | 32 | <label class="admin__field-label"
|
34 |
| - for="history_notify"><?= $escaper->escapeHtml(__('Notify Customer by Email')) ?></label> |
| 33 | + for="history_notify"><?= $block->escapeHtml(__('Notify Customer by Email')) ?></label> |
35 | 34 | </div>
|
36 | 35 | <?php endif; ?>
|
37 | 36 | <div class="admin__field admin__field-option">
|
|
41 | 40 | class="admin__control-checkbox"
|
42 | 41 | value="1" />
|
43 | 42 | <label class="admin__field-label"
|
44 |
| - for="history_visible"> <?= $escaper->escapeHtml(__('Visible on Storefront')) ?></label> |
| 43 | + for="history_visible"> <?= $block->escapeHtml(__('Visible on Storefront')) ?></label> |
45 | 44 | </div>
|
46 | 45 | </div>
|
47 | 46 | <div class="order-history-comments-actions">
|
|
60 | 59 | <?= /* @noEscape */ $block->formatTime($_comment->getCreatedAt(), \IntlDateFormatter::MEDIUM) ?>
|
61 | 60 | </span>
|
62 | 61 | <span class="note-list-customer">
|
63 |
| - <?= $escaper->escapeHtml(__('Customer')) ?> |
| 62 | + <?= $block->escapeHtml(__('Customer')) ?> |
64 | 63 | <?php if ($_comment->getIsCustomerNotified()): ?>
|
65 |
| - <span class="note-list-customer-notified"><?= $escaper->escapeHtml(__('Notified')) ?></span> |
| 64 | + <span class="note-list-customer-notified"><?= $block->escapeHtml(__('Notified')) ?></span> |
66 | 65 | <?php else: ?>
|
67 | 66 | <span class="note-list-customer-not-notified">
|
68 |
| - <?= $escaper->escapeHtml(__('Not Notified')) ?> |
| 67 | + <?= $block->escapeHtml(__('Not Notified')) ?> |
69 | 68 | </span>
|
70 | 69 | <?php endif; ?>
|
71 | 70 | </span>
|
72 | 71 | <div class="note-list-comment">
|
73 |
| - <?= /* @noEscape */ nl2br($escaper->escapeHtml( |
74 |
| - $_comment->getComment(), |
75 |
| - ['b', 'br', 'strong', 'i', 'u', 'a'] |
76 |
| - ))?> |
| 72 | + <?= $block->escapeHtml($_comment->getComment(), ['b', 'br', 'strong', 'i', 'u', 'a']) ?> |
77 | 73 | </div>
|
78 | 74 | </li>
|
79 | 75 | <?php endforeach; ?>
|
|
82 | 78 | <?php $scriptString = <<<script
|
83 | 79 | require(['prototype'], function(){
|
84 | 80 | submitComment = function() {
|
85 |
| - submitAndReloadArea($('comments_block').parentNode, '{$escaper->escapeJs($block->getSubmitUrl())}') |
| 81 | + submitAndReloadArea($('comments_block').parentNode, '{$block->escapeJs($block->getSubmitUrl())}') |
86 | 82 | };
|
87 | 83 | if ($('submit_comment_button')) {
|
88 | 84 | $('submit_comment_button').observe('click', submitComment);
|
|
0 commit comments