From 16c40ffefddd4277a299ef5e8603235ac45de7d9 Mon Sep 17 00:00:00 2001 From: Thomas Renard Date: Sun, 11 Dec 2016 14:05:07 +0100 Subject: [PATCH] htmlize yacy contents --- searx/engines/yacy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/searx/engines/yacy.py b/searx/engines/yacy.py index c2f1bc7ef..92cf881c0 100644 --- a/searx/engines/yacy.py +++ b/searx/engines/yacy.py @@ -16,6 +16,8 @@ from json import loads from urllib import urlencode from dateutil import parser +from searx.utils import html_to_text + # engine dependent config categories = ['general', 'images'] # TODO , 'music', 'videos', 'files' paging = True @@ -88,7 +90,7 @@ def response(resp): # append result results.append({'url': result['link'], 'title': result['title'], - 'content': result['description'], + 'content': html_to_text(result['description']), 'publishedDate': publishedDate}) # TODO parse video, audio and file results