Fixed tag comparison for snippet search
another fix that checks content of class tags