File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
app/code/Meta/Catalog/Model/Product/Feed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -395,9 +395,11 @@ protected function getDescription(Product $product)
395
395
$ productTitle = $ this ->trimAttribute (self ::ATTR_NAME , $ title );
396
396
397
397
$ description = $ description ?: $ productTitle ;
398
- // description can't be all uppercase
399
- $ description = $ this ->builderTools ->htmlDecode ($ description );
400
- return html_entity_decode (addslashes ($ this ->builderTools ->lowercaseIfAllCaps ($ description )));
398
+ // phpcs:ignore
399
+ $ description = html_entity_decode ($ description );
400
+ // phpcs:ignore
401
+ $ description = html_entity_decode (preg_replace ( '/<[^<]+?>/ ' , '' , $ description ));
402
+ return $ this ->builderTools ->lowercaseIfAllCaps ($ description );
401
403
}
402
404
403
405
/**
You can’t perform that action at this time.
0 commit comments