Home Forums Gutenberg Big problem with texteditor


Big problem with texteditor

    • merijn

    • March 8, 2019 at 10:26 pm


    When saving my custom gutenberg block content, with a full texteditor

    The blocks content get’s encoded with characters like u003c

    <!-- wp:acf/testimonialtest {"id":"block_5c824a2777270","data":{"field_5c824a1398ca3":"\u003cp\u003edit is een test huge as problem?\u003c/p\u003e\r\n\u003cp\u003edwdwqwdwd\u003c/p\u003e\r\n\u003cp\u003edwqdwpdwd\u003c/p\u003e\r\n\u003cp\u003eSUper dit\u003c/p\u003e"},"name":"acf/testimonialtest","align":"","mode":"preview"} /--

    When I use other duplicating pages or translations
    the block content shows all of the encoded characters


    u003cpu003edit is een test huge problemu003c/pu003ernu003cpu003edwdwqwdwdu003c/pu003ernu003cpu003edwqdwpdwdu003c/pu003ernu003cpu003eSUper ditu003c/pu003e

    I use InnoDB with utf8mb4_unicode_ci
    No other plugins are used, except any of those duplicate content plugins, or translations



    This happens one a clean install with no custom themes

    • merijn

    • March 27, 2019 at 12:32 am

    I openened a support ticket and the suggestion of Elliot is :
    Use wp_slash before inserting data..
    When duplicating a page

    wp_insert_post( wp_slash($my_post) );

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.