During the correction of Lint Errors on it.wiki, I noticed that the search strings including a "</span>" might generate wrong previews. For instance, if I make a search with "insource:/pagina di \'\'\'\[\[Aiuto\:Aiuto\|aiuto\]\]\'\'\'\.\<\/span\>/" (here is the link: https://it.wikipedia.org/w/index.php?title=Speciale:Ricerca&profile=all&search=insource%3A%2Fpagina+di+%5C%27%5C%27%5C%27%5C%5B%5C%5BAiuto%5C%3AAiuto%5C%7Caiuto%5C%5D%5C%5D%5C%27%5C%27%5C%27%5C.%5C%3C%5C%2Fspan%5C%3E%2F&fulltext=1&searchToken=8mklj71zqb959ugsrzrtwqtmw), the "</span>" isn't displayed in the previews. I've been told that this happens because of a "<span class="searchmatch">" wrapping each result, which gets closed by the tag in the result itself, that isn't consequentely displayed as expected. Is it possible to avoid this by preventing the matched text to be parsed as actual HTML?
EDIT: The search string I provided doesn't work anymore since every page with that error has been corrected. I can't find a string that will survive enough, but you can easily find one on your own: just make a search out of any "missing end tag" error with a faulty span and the error will pop up.