mirror of
https://github.com/searxng/searxng.git
synced 2026-06-13 21:37:51 +02:00
[fix] duckduckgo web: result title contains html (#6253)
This commit is contained in:
@@ -140,7 +140,9 @@ def response(resp: "SXNG_Response"):
|
|||||||
if "u" not in result:
|
if "u" not in result:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
res.add(res.types.MainResult(url=result["u"], title=result["t"], content=html_to_text(result["a"])))
|
res.add(
|
||||||
|
res.types.MainResult(url=result["u"], title=html_to_text(result["t"]), content=html_to_text(result["a"]))
|
||||||
|
)
|
||||||
|
|
||||||
# link to next page
|
# link to next page
|
||||||
next_page_path = res_json["results"][-1].get("n")
|
next_page_path = res_json["results"][-1].get("n")
|
||||||
|
|||||||
Reference in New Issue
Block a user