We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c8b0f0 + 9b060b3 commit 95c01a7Copy full SHA for 95c01a7
app/code/Magento/PageBuilder/Model/Filter/Template.php
@@ -173,8 +173,13 @@ function ($errorNumber, $errorString) {
173
$string = mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8');
174
try {
175
libxml_use_internal_errors(true);
176
+ // LIBXML_SCHEMA_CREATE option added according to this message
177
+ // https://stackoverflow.com/a/66473950/773018
178
+ // Its need to avoid bug described in maskScriptTags()
179
+ // https://bugs.php.net/bug.php?id=52012
180
$domDocument->loadHTML(
- '<html><body>' . $string . '</body></html>'
181
+ '<html><body>' . $string . '</body></html>',
182
+ LIBXML_SCHEMA_CREATE
183
);
184
libxml_clear_errors();
185
} catch (Exception $e) {
0 commit comments