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/bing.py | |
| parent | 28f12ef5a0917b8cefddb4d5f74c9aaeb945355f (diff) | |
[mod] do not escape html content in engines
Diffstat (limited to 'searx/engines/bing.py')
| -rw-r--r-- | searx/engines/bing.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/engines/bing.py b/searx/engines/bing.py index 540597162..58db61251 100644 --- a/searx/engines/bing.py +++ b/searx/engines/bing.py @@ -14,7 +14,6 @@ """ from urllib import urlencode -from cgi import escape from lxml import html from searx.engines.xpath import extract_text @@ -61,7 +60,7 @@ def response(resp): link = result.xpath('.//h3/a')[0] url = link.attrib.get('href') title = extract_text(link) - content = escape(extract_text(result.xpath('.//p'))) + content = extract_text(result.xpath('.//p')) # append result results.append({'url': url, @@ -73,7 +72,7 @@ def response(resp): link = result.xpath('.//h2/a')[0] url = link.attrib.get('href') title = extract_text(link) - content = escape(extract_text(result.xpath('.//p'))) + content = extract_text(result.xpath('.//p')) # append result results.append({'url': url, |