Skip to content

Commit 6144ebd

Browse files
committed
AC-10528:Fix for Order Invoice Comment
1 parent 57562d5 commit 6144ebd

File tree

1 file changed

+4
-1
lines changed
  • app/code/Magento/Sales/view/adminhtml/templates/order/comments

1 file changed

+4
-1
lines changed

app/code/Magento/Sales/view/adminhtml/templates/order/comments/view.phtml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@
7070
<?php endif; ?>
7171
</span>
7272
<div class="note-list-comment">
73-
<?= nl2br($escaper->escapeHtml($_comment->getComment(), ['b', 'br', 'strong', 'i', 'u', 'a'])) ?>
73+
<?= /* @noEscape */ $escaper->escapeHtml(
74+
$_comment->getComment(),
75+
['b', 'br', 'strong', 'i', 'u', 'a']
76+
) ?>
7477
</div>
7578
</li>
7679
<?php endforeach; ?>

0 commit comments

Comments
 (0)