File Block: unexpected or invalid content when a link is pasted in #54700
Labels
[Block] File
Affects the File Block
Needs Testing
Needs further testing to be confirmed.
[Type] Bug
An existing feature does not function as intended
Description
On one of our sites, we found a lot of "unexpected or invalid content" on File Blocks. Looking into it, we think it was caused by pasting links over the filename.
Step-by-step reproduction instructions
<a href='https://wordpress.org/'>WordPress</a>
(The block preview will just show WordPress as a link.)Screenshots, screen recording, code snippet
No response
Environment info
WP 6.3.1, Gutenberg 16.6.0
(Also WP 6.3.1 without Gutenberg and WP 6.2.2 without Gutenberg)
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: