diff options
author | Bnyro <bnyro@tutanota.com> | 2024-08-28 14:53:22 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-08-31 17:11:49 +0200 |
commit | 5e576b22384727e4ddbb2bfe71effe23dd6b98a8 (patch) | |
tree | 1ca33604f7a1455f43cbc72339af163940db8ff2 /searx | |
parent | cbd86473aadb31c0a12694f56a94c41ab2581142 (diff) | |
download | searxng-5e576b22384727e4ddbb2bfe71effe23dd6b98a8.tar.gz searxng-5e576b22384727e4ddbb2bfe71effe23dd6b98a8.zip |
[fix] search: titles including html brackets are not shown properly
Diffstat (limited to 'searx')
-rw-r--r-- | searx/results.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/results.py b/searx/results.py index b846eb275..7c973ca8f 100644 --- a/searx/results.py +++ b/searx/results.py @@ -9,7 +9,6 @@ from typing import List, NamedTuple, Set from urllib.parse import urlparse, unquote from searx import logger -from searx import utils from searx.engines import engines from searx.metrics import histogram_observe, counter_add, count_error @@ -366,9 +365,9 @@ class ResultContainer: result['score'] = result_score(result, result.get('priority')) # removing html content and whitespace duplications if result.get('content'): - result['content'] = utils.html_to_text(result['content']).strip() + result['content'] = result['content'].strip() if result.get('title'): - result['title'] = ' '.join(utils.html_to_text(result['title']).strip().split()) + result['title'] = ' '.join(result['title'].strip().split()) for result_engine in result['engines']: counter_add(result['score'], 'engine', result_engine, 'score') |