diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2016-12-09 11:44:24 +0100 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2016-12-09 18:59:19 +0100 |
| commit | 16bdc0baf4f2b56af000337c4a2fa1e689f1220c (patch) | |
| tree | ab232c3505aa194e8ee30ae7861cc90f6c913023 /searx/engines/flickr.py | |
| parent | 28f12ef5a0917b8cefddb4d5f74c9aaeb945355f (diff) | |
[mod] do not escape html content in engines
Diffstat (limited to 'searx/engines/flickr.py')
| -rw-r--r-- | searx/engines/flickr.py | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/searx/engines/flickr.py b/searx/engines/flickr.py index 68d45bc17..1c3eef789 100644 --- a/searx/engines/flickr.py +++ b/searx/engines/flickr.py @@ -77,21 +77,13 @@ def response(resp): url = build_flickr_url(photo['owner'], photo['id']) - title = photo['title'] - - content = '<span class="photo-author">' +\ - photo['ownername'] +\ - '</span><br />' +\ - '<span class="description">' +\ - photo['description']['_content'] +\ - '</span>' - # append result results.append({'url': url, - 'title': title, + 'title': photo['title'], 'img_src': img_src, 'thumbnail_src': thumbnail_src, - 'content': content, + 'content': content = photo['description']['_content'], + 'author': photo['ownername'], 'template': 'images.html'}) # return results |