Bläddra i källkod

[fix] remove result escaping from engine

Adam Tauber 8 år sedan
förälder
incheckning
4676e1dcde
1 ändrade filer med 2 tillägg och 3 borttagningar
  1. 2
    3
      searx/engines/www500px.py

+ 2
- 3
searx/engines/www500px.py Visa fil

@@ -15,7 +15,6 @@
15 15
 from json import loads
16 16
 from urllib import urlencode
17 17
 from urlparse import urljoin
18
-from xml.sax.saxutils import escape
19 18
 
20 19
 # engine dependent config
21 20
 categories = ['images']
@@ -57,11 +56,11 @@ def response(resp):
57 56
     # parse results
58 57
     for result in response_json['photos']:
59 58
         url = urljoin(base_url, result['url'])
60
-        title = escape(result['name'])
59
+        title = result['name']
61 60
         # last index is the biggest resolution
62 61
         img_src = result['image_url'][-1]
63 62
         thumbnail_src = result['image_url'][0]
64
-        content = escape(result['description'] or '')
63
+        content = result['description'] or ''
65 64
 
66 65
         # append result
67 66
         results.append({'url': url,