Browse Source

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

Aadniz 1 month ago
parent
commit
4884747508
1 changed files with 2 additions and 2 deletions
  1. 2 2
      searx/engines/presearch.py

+ 2 - 2
searx/engines/presearch.py

@@ -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)