@@ -26,6 +26,9 @@ $orderStoreDate = $block->formatDate(
26
26
);
27
27
28
28
$ customerUrl = $ block ->getCustomerViewUrl ();
29
+ $ allowedAddressHtmlTags = ['abbr ' , 'b ' , 'blockquote ' , 'br ' , 'code ' , 'dd ' , 'del ' , 'dl ' , 'dt ' , 'em ' ,
30
+ 'h1 ' , 'h2 ' , 'h3 ' , 'h4 ' , 'h5 ' , 'h6 ' , 'hr ' , 'i ' , 'kbd ' , 'li ' , 'ol ' , 'p ' , 'pre ' , 's ' , 'strike ' ,
31
+ 'strong ' , 'sub ' , 'sup ' , 'ul ' ];
29
32
?>
30
33
31
34
<section class="admin__page-section order-view-account-information">
@@ -171,7 +174,7 @@ $customerUrl = $block->getCustomerViewUrl();
171
174
<span class="title"><?= $ block ->escapeHtml (__ ('Billing Address ' )) ?> </span>
172
175
<div class="actions"><?= /* @noEscape */ $ block ->getAddressEditLink ($ order ->getBillingAddress ()); ?> </div>
173
176
</div>
174
- <address class="admin__page-section-item-content"><?= /* @noEscape */ $ block ->getFormattedAddress ($ order ->getBillingAddress ()); ?> </address>
177
+ <address class="admin__page-section-item-content"><?= $ block ->escapeHtml ( $ block -> getFormattedAddress ($ order ->getBillingAddress ()), $ allowedAddressHtmlTags ); ?> </address>
175
178
</div>
176
179
<?php if (!$ block ->getOrder ()->getIsVirtual ()): ?>
177
180
<div class="admin__page-section-item order-shipping-address">
@@ -180,7 +183,7 @@ $customerUrl = $block->getCustomerViewUrl();
180
183
<span class="title"><?= $ block ->escapeHtml (__ ('Shipping Address ' )) ?> </span>
181
184
<div class="actions"><?= /* @noEscape */ $ block ->getAddressEditLink ($ order ->getShippingAddress ()); ?> </div>
182
185
</div>
183
- <address class="admin__page-section-item-content"><?= /* @noEscape */ $ block ->getFormattedAddress ($ order ->getShippingAddress ()); ?> </address>
186
+ <address class="admin__page-section-item-content"><?= $ block ->escapeHtml ( $ block -> getFormattedAddress ($ order ->getShippingAddress ()), $ allowedAddressHtmlTags ); ?> </address>
184
187
</div>
185
188
<?php endif ; ?>
186
189
</div>
0 commit comments