Tet banner

Custom Fields
Support General textarea not saving html

  • Creator
  • #15970
    Resolved knms5525

    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
  • #15975
    Anh Tran

    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.