core/file copy paste filename should be escaped #54820
Labels
[Block] File
Affects the File Block
[Status] In Progress
Tracking issues with work in progress
[Type] Enhancement
A suggestion for improvement.
Description
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
Screenshots, screen recording, code snippet
Here is the block after pasting the HTML link instead of text.
Environment info
No response
Please 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: