Skip to content

Commit ac2a533

Browse files
committed
AC-7604 Fixed page builder related fix to resolve functional build failure
1 parent 7e45cd9 commit ac2a533

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/PageBuilder/Model/Stage/HtmlFilter.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ public function filterHtml(string $content): string
4545
//this code is required because of https://bugs.php.net/bug.php?id=60021
4646
$previous = libxml_use_internal_errors(true);
4747
$content = '<div>' . $content . '</div>';
48-
$string = mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8');
48+
$string = mb_encode_numericentity(
49+
$content,
50+
['HTML-ENTITIES','','',''],
51+
'UTF-8'
52+
);
4953
$dom->loadHTML($string, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
5054
} catch (\Exception $e) {
5155
$this->loggerInterface->critical($e->getMessage());

0 commit comments

Comments
 (0)