- Go to https://en.m.wikipedia.org/wiki/Dada_Masiti?mobileaction=beta#/categories/add when logged in
- Click the search box. Type: Categ
Observe: "<strong>" and "</strong>" tags are visible in autocompletions.
This doesn't happen if you type the category name without the "Category" namespace (this is another bug captured in T225556). This happens on desktop and on mobile phone.
- CategoryLookupInputWidget passes a string containing HTML to OO.ui.MenuOptionWidget's label option and that gets escaped. The HTML in this string originates from SearchGateway's _highlightSearchTerm method. To immediately address the problem, we may want to pass new OO.ui.HtmlSnippet( value.displayTitle ) instead of this plain string.
- The "<strong>" tags should not be escaped. When present, the user should see the letters bolded instead.