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/dictzone.py | |
| parent | 28f12ef5a0917b8cefddb4d5f74c9aaeb945355f (diff) | |
[mod] do not escape html content in engines
Diffstat (limited to 'searx/engines/dictzone.py')
| -rw-r--r-- | searx/engines/dictzone.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/engines/dictzone.py b/searx/engines/dictzone.py index 9765d5f60..20a9a8980 100644 --- a/searx/engines/dictzone.py +++ b/searx/engines/dictzone.py @@ -12,7 +12,6 @@ import re from urlparse import urljoin from lxml import html -from cgi import escape from searx.utils import is_valid_lang categories = ['general'] @@ -62,8 +61,8 @@ def response(resp): results.append({ 'url': urljoin(resp.url, '?%d' % k), - 'title': escape(from_result.text_content()), - 'content': escape('; '.join(to_results)) + 'title': from_result.text_content(), + 'content': '; '.join(to_results) }) return results |