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.
1 parent 2bfdd89 commit 6812848Copy full SHA for 6812848
app/code/Magento/PageBuilder/Model/Filter/Template.php
@@ -91,6 +91,15 @@ public function filter(string $result) : string
91
if (!empty($matches)) {
92
$docHtml = $matches[1];
93
94
+ // restore any encoded directives
95
+ $docHtml = preg_replace_callback(
96
+ '/=\"(%7B%7B[^"]*%7D%7D)\"/m',
97
+ function($matches) {
98
+ return urldecode($matches[0]);
99
+ },
100
+ $docHtml
101
+ );
102
+
103
if (isset($uniqueNodeNameToDecodedOuterHtmlMap)) {
104
foreach ($uniqueNodeNameToDecodedOuterHtmlMap as $uniqueNodeName => $decodedOuterHtml) {
105
$docHtml = str_replace(
0 commit comments