Skip to content

Commit 7e45cd9

Browse files
committed
Fixed PHP deprecated function to resolve functional failures
1 parent d3978f8 commit 7e45cd9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/PageBuilder/Model/Filter/Template.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,11 @@ function ($errorNumber, $errorString) {
170170
throw new DOMException($errorString, $errorNumber);
171171
}
172172
);
173-
$string = mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8');
173+
$string = mb_encode_numericentity(
174+
$html,
175+
['HTML-ENTITIES','','',''],
176+
'UTF-8'
177+
);
174178
try {
175179
libxml_use_internal_errors(true);
176180
// LIBXML_SCHEMA_CREATE option added according to this message

0 commit comments

Comments
 (0)