diff --git a/app/code/Magento/PageBuilder/Model/Stage/HtmlFilter.php b/app/code/Magento/PageBuilder/Model/Stage/HtmlFilter.php index 17c6569f919..4f8304af7c9 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(); @@ -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; } }