From d092bafa52b5008cda3ccae7886edce50e6d0119 Mon Sep 17 00:00:00 2001 From: Shivam7-1 <55046031+Shivam7-1@users.noreply.github.com> Date: Thu, 19 Dec 2024 08:40:35 +0530 Subject: [PATCH 1/2] Update HtmlFilter.php --- app/code/Magento/PageBuilder/Model/Stage/HtmlFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/PageBuilder/Model/Stage/HtmlFilter.php b/app/code/Magento/PageBuilder/Model/Stage/HtmlFilter.php index 17c6569f919..e8e2802e525 100644 --- a/app/code/Magento/PageBuilder/Model/Stage/HtmlFilter.php +++ b/app/code/Magento/PageBuilder/Model/Stage/HtmlFilter.php @@ -98,7 +98,7 @@ public function filterHtml(string $content): string */ private function getChildrenInnerHtml(\DOMElement $element): string { - $innerHTML = ''; + $innerText = ''; $childrenIterator = $element->childNodes->getIterator(); while ($childrenIterator->valid()) { $child = $childrenIterator->current(); From 6a6ac1bf6b1e1154288517ff99c452c712eea736 Mon Sep 17 00:00:00 2001 From: Shivam7-1 <55046031+Shivam7-1@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:10:59 +0530 Subject: [PATCH 2/2] Updated-1 HtmlFilter.php --- app/code/Magento/PageBuilder/Model/Stage/HtmlFilter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/PageBuilder/Model/Stage/HtmlFilter.php b/app/code/Magento/PageBuilder/Model/Stage/HtmlFilter.php index e8e2802e525..4f8304af7c9 100644 --- a/app/code/Magento/PageBuilder/Model/Stage/HtmlFilter.php +++ b/app/code/Magento/PageBuilder/Model/Stage/HtmlFilter.php @@ -112,9 +112,9 @@ private function getChildrenInnerHtml(\DOMElement $element): string $childrenIterator->next(); continue; } - $innerHTML .= $ownerDocument->saveXML($child); + $innerText .= $ownerDocument->saveXML($child); $childrenIterator->next(); } - return $innerHTML; + return $innerText; } }