Custom Fields
Re-Envisioned
Support General textarea not saving html

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 1 month, 1 week ago.

  • Creator
    Topic
  • #15970
    Resolved
    knms5525
    Participant

    Once a month I’ve been saving iframe details in textarea. Its been working up until this month / today when I went to add a new iframe details and it wont save? It will save just text but doesnt seem to save html anymore?

    Thank you in advance for your time and input.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #15975

    Anh Tran
    Keymaster

    Hi, since the version 5.1 of Meta Box, we have added a sanitization for all inputs to improve the security. Textarea by default will have the wp_kses_post sanitize callback, which will strips all iframe, script and style.

    To bypass the sanitization to make it accept iframe, please add this setting to the field:

    'sanitize_callback' => 'none'

    See more in this docs: https://docs.metabox.io/sanitization/#bypass-the-sanitization

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.