Browse Source

htmlize yacy contents

Thomas Renard 8 years ago
parent
commit
16c40ffefd
1 changed files with 3 additions and 1 deletions
  1. 3 1
      searx/engines/yacy.py

+ 3 - 1
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