Malformed content with gutenberg blocks
-
Hello,
When I use this plugin to copy gutenberg pages, the characters within (advanced custom fields) texteditors are not encoded..
So slashes are shown as unicode:
`u003cpu003edit is een test huge problemu003c/pu003ernu003cpu003edwdwqwdwdu003c/pu003ernu003cpu003edwqdwpdwdu003c/pu003ernu003cpu003eSUper ditu003c/pu003eI posted a topic on ACF and opened a support ticket
https://support.advancedcustomfields.com/forums/topic/big-problem-with-texteditor/#post-85399Elliot Condon came with the solution to use wp_slash before inserting the post data
So within your plugin:
'post_content' => $post->post_content,should be
'post_content' => wp_slash($post->post_content),If a gutenberg page is copied
Can you add this within the next release?
Thanks
The topic ‘Malformed content with gutenberg blocks’ is closed to new replies.