1

Magento 2.4.6

When I am getting the product description programmatically using getDescription(), the description is wrapped in <div data-content-type="html" data-appearance="default" data-element="main" data-decoded="true">.

I suspect its related to the pagebuilder, but how can I avoid that? It does not happen for all products. My code is like this:

$desc = $product->getDescription();

And the result looks like that:

<div data-content-type="html" data-appearance="default" data-element="main" data-decoded="true">
    my description
</div>

The wrapping div can not be seen when opening the description of the product. So, how can this be avoided? I know there are similar questions out there, but no real answers :).

Thanks!

1
  • Did you checked in db ?
    – Pawan
    Commented Aug 30 at 9:36

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.