Skip to content

Commit 7f2120b

Browse files
committed
MC-34602: \“Order by SKU\” Widget is displayed incorrectly on the Storefront
1 parent 55af84f commit 7f2120b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/internal/Magento/Framework/Escaper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ public function escapeHtml($data, $allowedTags = null)
7272
$data = (string)$data;
7373
}
7474

75+
if ($allowedTags !== null && !is_array($allowedTags)) {
76+
$allowedTags = [$allowedTags];
77+
}
78+
7579
if (is_array($data)) {
7680
$result = [];
7781
foreach ($data as $item) {

0 commit comments

Comments
 (0)