You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During syndication, both pull and push, if a WordPress Gutenberg block enabled post content has Unicode characters in block attributes, I expect the Unicode characters to be slashed so that WordPress does not remove the slashes when pulling the syndicated posts. At the moment, WordPress strips out the slashes, so it creates invalid text strings in the post content of the syndicated post.
Steps to Reproduce
Create a custom Gutenberg block with the following attributes title, description.
Add some test content and save it so that the post content is now available in the database with the title and description attributes.
Replace the attributes with following code snippet which has encoded content in the title and description attributes of the post content.
Make the post available for syndication
Pull the post on the multisite.
WordPress strips of the slashes creating the character encoding issue as shown in the screenshot below.
Screenshots, screen recording, code snippet
{"title":"Our 11 Objectives","description":"\u003cstrong\u003eEnvironment\u003c/strong\u003e \u003cbr\u003e\u003cbr\u003e\u003cstrong\u003eObjective 01\u003c/strong\u003e \u003cbr\u003eBe carbon neutral for our own operations no later than 2025 and across our supply chain by 2030, and committed to becoming a net zero business well ahead of 2050\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003eObjective 02\u003c/strong\u003e \u003cbr\u003eTransition to 100% renewable electricity by 2025, and electric vehicles by 2030\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003eObjective 03 \u003c/strong\u003e\u003cbr\u003eHelp our clients to save 10m tons of Co2 eq by 2030\u003cbr\u003e\u003cbr\u003e\u003ca Find out more on environmental sustainability\u003c/a\u003e"}
Environment information
No response
WordPress information
WordPress is managed by the WordPress VIP
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
@amalajith welcome to Distributor, thanks for the report, and for the resulting PR! We'll get the PR through review and get back to you with any questions or concerns, thanks again!
Describe the bug
During syndication, both pull and push, if a WordPress Gutenberg block enabled post content has Unicode characters in block attributes, I expect the Unicode characters to be slashed so that WordPress does not remove the slashes when pulling the syndicated posts. At the moment, WordPress strips out the slashes, so it creates invalid text strings in the post content of the syndicated post.
Steps to Reproduce
Screenshots, screen recording, code snippet
Environment information
No response
WordPress information
WordPress is managed by the WordPress VIP
Code of Conduct
The text was updated successfully, but these errors were encountered: