Entering "&gt;" into the RichText component causes block validation failure #16252
You can repro this easily via my remix of the Gutenberg Block Kit Glitch project:
Steps to repro:
Should either render as literally
The block gets into a bad state after refreshing: "This block contains unexpected or invalid content"
Error in the console:
(I verified this also repros when installed in WordPress as well.)
Thanks for taking a look and let me know if there's any way I can help! Gutenberg and the Block Kit on Glitch have been very cool to play with!
Context: Why am I trying to write
I found this bug because I'm writing a rich text code block plugin that lets you write code snippets and also add basic styling to them (so that you can bold part of a code snippet).
My plugin basically works, but RichText renders HTML entities like ">" even when you set the attribute content to the escaped value (which I think is #15636).
I can imagine wanting to write
The text was updated successfully, but these errors were encountered: