textarea not saving html

Support General textarea not saving htmlResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15970
    knms5525knms5525
    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.

    #15975
    Anh TranAnh 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 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.