[fix] presearch engine: Title showing <em> html code

This commit is contained in:
Aadniz 2025-03-07 10:31:58 +01:00 committed by Bnyro
parent eb3633629a
commit 4884747508

View file

@ -161,7 +161,7 @@ def parse_search_query(json_results):
for item in json_results.get('specialSections', {}).get('topStoriesCompact', {}).get('data', []):
result = {
'url': item['link'],
'title': item['title'],
'title': html_to_text(item['title']),
'thumbnail': item['image'],
'content': '',
'metadata': item.get('source'),
@ -171,7 +171,7 @@ def parse_search_query(json_results):
for item in json_results.get('standardResults', []):
result = {
'url': item['link'],
'title': item['title'],
'title': html_to_text(item['title']),
'content': html_to_text(item['description']),
}
results.append(result)