File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
app/code/Magento/PageBuilder/Plugin/Filter Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,7 @@ private function generateDecodedHtmlPlaceholderMappingInDocument(\DOMDocument $d
235
235
$ preDecodedOuterHtml = $ document ->saveHTML ($ htmlContentTypeNode );
236
236
237
237
// clear empty <div> wrapper around outerHTML to replace with $clonedHtmlContentTypeNode
238
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
238
239
$ decodedInnerHtml = preg_replace ('#^<[^>]*>|</[^>]*>$# ' , '' , html_entity_decode ($ preDecodedOuterHtml ));
239
240
240
241
// Use $clonedHtmlContentTypeNode's placeholder to inject decoded inner html
@@ -268,6 +269,7 @@ private function generateBackgroundImageStyles(\DOMDocument $document) : void
268
269
$ backgroundImages = $ node ->attributes ->getNamedItem ('data-background-images ' );
269
270
if ($ backgroundImages ->nodeValue !== '' ) {
270
271
$ elementClass = uniqid ('background-image- ' );
272
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
271
273
$ images = json_decode (stripslashes ($ backgroundImages ->nodeValue ), true );
272
274
if (count ($ images ) > 0 ) {
273
275
$ style = $ xpath ->document ->createElement (
You can’t perform that action at this time.
0 commit comments