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
{{ message }}
Repository navigation
core/file copy paste filename should be escaped #54820
When adding a new block core/file and editing the file name from Gutenberg, we are allowed to copy/paste HTML instead of text.
Here for example, I copied a link from a web page and my browser (Chrome, Edge) copied the full HTML and not only the text of the link.
When I paste it in my file block, the full HTML is pasted instead of the text.
Step-by-step reproduction instructions
Create a new Gutenberg page
Add a file block
Upload any kind of document (media library or upload)
Copy a link from any web page
Paste it as the file "text"
Save the page and reload
The block is now broken because it is not supposed to have link inside the "text" attribute
Screenshots, screen recording, code snippet
Here is the block after pasting the HTML link instead of text.
Activity