Snippet result has HTML tags included

Created on 14 June 2017, over 7 years ago
Updated 2 November 2024, about 2 months ago

We updated the Search API from 7.x-1.15 to 7.x.1.21, and found that the search result is inserting html tags in the snippet result. After some debugging we found out that when we disable the highlighting functionality, it doesn't insert any visible html code. HTML Filter is already enabled. So we downgraded version after version until we found that 7.x-1.17 does not have this problem. The problem started appearing after version 7.x-1.17. We are using search_api_solr, and search_api_page for display of results; both the latest versions. Did anyone have the following problem? Is there a way to get latest Search API with highlight functionality to work as intended?

🐛 Bug report
Status

Closed: won't fix

Version

1.26

Component

General code

Created by

🇱🇧Lebanon Hishamz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia silverham

    For google search - I came here to mention that on the current 4.x version, the same issue applies (html tags shown but escaped) in Drupal view excerpt UNLESS you also had the rendered item field to the Drupal view (can be hidden), otherwise Drupal load the rendered item which won't have the HTML filter processor applied, and that get gets highlighted.

Production build 0.71.5 2024