mirror of
https://github.com/searxng/searxng.git
synced 2025-03-12 15:41:15 +00:00
[fix] presearch engine: Title showing <em> html code
This commit is contained in:
parent
eb3633629a
commit
4884747508
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue