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