-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LinkControl: Remove HTML from suggestion title before passing it to TextHighlight component #48685
Conversation
…ht component add inline comment
Size Change: +1 B (0%) Total Size: 1.34 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @fabiankaegy!
packages/block-editor/src/components/link-control/search-item.js
Outdated
Show resolved
Hide resolved
Flaky tests detected in 0addf48. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4314601232
|
Co-authored-by: George Mamadashvili <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a good fix 👍 Thank you for following up.
What?
strip html tags from suggestion.title before passing it to
TextHighlight
componentWhy?
An alternate approach to #48674 to close #48672
How?
wrapping the
suggestion.title
in astripHTML
function callTesting Instructions
mark
element with any tag in it. For example:<mark style="">test</mark> page
Before this patch this caused the block to error.
Testing Instructions for Keyboard
Not applicable