mirror of
https://github.com/searxng/searxng.git
synced 2025-04-26 05:04:44 +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', []):
|
for item in json_results.get('specialSections', {}).get('topStoriesCompact', {}).get('data', []):
|
||||||
result = {
|
result = {
|
||||||
'url': item['link'],
|
'url': item['link'],
|
||||||
'title': item['title'],
|
'title': html_to_text(item['title']),
|
||||||
'thumbnail': item['image'],
|
'thumbnail': item['image'],
|
||||||
'content': '',
|
'content': '',
|
||||||
'metadata': item.get('source'),
|
'metadata': item.get('source'),
|
||||||
|
@ -171,7 +171,7 @@ def parse_search_query(json_results):
|
||||||
for item in json_results.get('standardResults', []):
|
for item in json_results.get('standardResults', []):
|
||||||
result = {
|
result = {
|
||||||
'url': item['link'],
|
'url': item['link'],
|
||||||
'title': item['title'],
|
'title': html_to_text(item['title']),
|
||||||
'content': html_to_text(item['description']),
|
'content': html_to_text(item['description']),
|
||||||
}
|
}
|
||||||
results.append(result)
|
results.append(result)
|
||||||
|
|
Loading…
Reference in a new issue