Steps to replicate the issue (include links if applicable):
- Go to the betacluster: https://en.wikipedia.beta.wmflabs.org/w/index.php?fulltext=1&search=cat&title=Special:Search&ns0=1
- Search term Cat
- In the list of search results find an article named Geoffroy's cat
- Click on this item to invoke search preview
What happens?:
The search preview is not opening. There is an error in the devtools console: Error: Syntax error, unrecognized expression: [title='Geoffroy's cat']
What should have happened instead?:
The search preview for Geoffroy's catand other articles with special characters in the title should appear.