WYSIWYG Custom Field Code Being Sanitized Even With Sanitization Off

Support Meta Box AIO WYSIWYG Custom Field Code Being Sanitized Even With Sanitization Off

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #42611
    Christopher PisarChristopher Pisar
    Participant

    I have searched high and low on the forums for a solution for this issue.

    I have an eCommerce site built with Bricks and Woocommerce where I have a number of custom fields that are being dynamically integrated.

    These custom fields are WYSIWYG fields where a mixture of html, including h2 headings and paragraph tags.

    Even with sanitization set to none on the advanced settings, the <p> tags are still being scrubbed.

    What's extra strange is there are other WYSIWYG custom fields for products that have a mixture of heading and p tags that don't have sanitization turned off and the <p> tags are never scrubbed.

    #42612
    BluewaterBluewater
    Participant

    I am experiencing the same issue!

    #42674
    PeterPeter
    Moderator

    Hello,

    I see that issue on my demo site, it works like the plugin Classic Editor. The <p> tag will be added to the paragraph text in the frontend with the function wpautop().
    If I switch between tab Text and Visual, the <p> tag added manually will be scrubbed.

    #42769
    Christopher PisarChristopher Pisar
    Participant

    Hey Peter, is this an official answer from Meta Box?

    This has nothing to do with switching between text and visual tabs.

    The code is being scrubbed without that happening.

    #42850
    Christopher PisarChristopher Pisar
    Participant

    Can we please get an official answer on this issue?

    #42856
    PeterPeter
    Moderator

    Hello,

    I've escalated this issue to the development team to check it and I will let you know if I have any information. I see the same issue when editing the product description of WooCommerce, screen record https://imgur.com/k5FM17R

    However, it is still displayed as well in the frontend if you use the helper function rwmb_meta() to output the field value. If you have an issue when using Bricks builder, please try to contact their support to get more info.

    #42867
    Christopher PisarChristopher Pisar
    Participant

    I'll look into using that helper class.

    I appreciate the reply and escalation.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.