Steps to replicate the issue (include links if applicable):
- Add a label with HTML in it, e.g. <em>An emphatic label</em>
- Add this label to some watchlist items
- Filter by this label
A similar bug can be seen with namespaces, e.g. $wgExtraNamespaces[516] = 'Lorem & ipsum'; (in LocalSettings.php) and tags, e.g. &tagfilter=Lorem+%26+ipsum (in the Special:Watchlist URL).
Also, labels in a script in the opposite direction of the UI language do not display differently between Special:Watchlist and Special:WatchlistLabels. For example, ויקידאטא Q12345.
What happens?:
The label is displayed incorrectly in the filter bar on Special:Watchlist.
What should have happened instead?:
It should be displayed as it is in the other places labels are displayed.


