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
Thanks for opening up an issue for this one! It looks like the common / desired way to server-render attributes that are set via RichText components in the editor is to use wp_kses_post to sanitize output instead of escaping the HTML characters (based on earlier discussion in #38649 (review)). I've opened up a small PR in #40776 to fix this up for the Post Author block.
Description
The post-author block allows entering a byline using a
RichText
component. When entering a byline I have buttons for emphasis, strong and so on.When viewing a byline these tags are escaped.
In Gutenberg I have this mark-up:
which looks like this in Gutenberg:
![image](https://user-images.githubusercontent.com/93301/165189334-5fa4df56-4eb0-4068-913b-53b69b14e774.png)
and looks like this on the front end:
![image](https://user-images.githubusercontent.com/93301/165189378-fe5372ba-301a-4ca5-bc9a-cbdc653ed246.png)
I expect what I see on the front-end to look like what I see in Gutenberg
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screen.Capture.on.2022-04-26.at.00-15-32.mp4
The data is escaped here:
gutenberg/packages/block-library/src/post-author/index.php
Line 42 in c5b9ca1
Environment info
Using the Gutenberg development docker image,
a0e1728bc
is my current HEADPlease confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: