logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: 4676e1dcdee2b5039c8519b544e0211e718398d9
parent 1a82ed6f54a1e529485943d3f018b589d9b3aefc
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Sun, 11 Dec 2016 03:24:26 +0100

[fix] remove result escaping from engine

Diffstat:

Msearx/engines/www500px.py5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/searx/engines/www500px.py b/searx/engines/www500px.py @@ -15,7 +15,6 @@ from json import loads from urllib import urlencode from urlparse import urljoin -from xml.sax.saxutils import escape # engine dependent config categories = ['images'] @@ -57,11 +56,11 @@ def response(resp): # parse results for result in response_json['photos']: url = urljoin(base_url, result['url']) - title = escape(result['name']) + title = result['name'] # last index is the biggest resolution img_src = result['image_url'][-1] thumbnail_src = result['image_url'][0] - content = escape(result['description'] or '') + content = result['description'] or '' # append result results.append({'url': url,