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 }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
The issue only occurs when your search includes a special character (ie. <, >, &). It will break in one of two ways:
When your search ends with &, it will be searching the actual HTML which looks like Alabama & something in this case. It will match the & in & and the highlight <span> will split the special character, causing the results seen in the screenshot above.
When searching for other special characters, it will simply not highlight anything.
Solution
We need to make sure that we are searching the textContent and not the innerHTML of the element.