summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-12-11 14:27:39 +0100
committerGitHub <noreply@github.com>2016-12-11 14:27:39 +0100
commit6b6007fc78f47099d84099c6d6c23e2cd213b82f (patch)
tree02a20730728ae4382641ef856ec5a303dc4563bb
parent75c58fd008e3d10dff788d133904a7904dd4635f (diff)
parent16c40ffefddd4277a299ef5e8603235ac45de7d9 (diff)
Merge pull request #782 from cy8aer/yacyhtmltag
htmlize yacy contents
-rw-r--r--searx/engines/yacy.py4
1 files changed, 3 insertions, 1 deletions
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