diff options
| author | Aadniz <8147434+Aadniz@users.noreply.github.com> | 2025-03-07 10:31:58 +0100 |
|---|---|---|
| committer | Bnyro <bnyro@tutanota.com> | 2025-03-07 21:24:35 +0100 |
| commit | 4884747508cf310406e458bcff8d72c44fb25005 (patch) | |
| tree | 41e39d31541c7b786ca16daefa5709a966fdc17a /searx/engines/presearch.py | |
| parent | eb3633629a8e91ece7f75ab58226de2d2df1b698 (diff) | |
[fix] presearch engine: Title showing <em> html code
Diffstat (limited to 'searx/engines/presearch.py')
| -rw-r--r-- | searx/engines/presearch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/presearch.py b/searx/engines/presearch.py index 051138e91..8a2614bb5 100644 --- a/searx/engines/presearch.py +++ b/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) |