Fix HTML issues in search results and home page