summaryrefslogtreecommitdiff
path: root/searx/engines/digg.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-12-09 11:44:24 +0100
committerAdam Tauber <asciimoo@gmail.com>2016-12-09 18:59:19 +0100
commit16bdc0baf4f2b56af000337c4a2fa1e689f1220c (patch)
treeab232c3505aa194e8ee30ae7861cc90f6c913023 /searx/engines/digg.py
parent28f12ef5a0917b8cefddb4d5f74c9aaeb945355f (diff)
downloadsearxng-16bdc0baf4f2b56af000337c4a2fa1e689f1220c.tar.gz
searxng-16bdc0baf4f2b56af000337c4a2fa1e689f1220c.zip
[mod] do not escape html content in engines
Diffstat (limited to 'searx/engines/digg.py')
-rw-r--r--searx/engines/digg.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/engines/digg.py b/searx/engines/digg.py
index a10b38bb6..238b466a0 100644
--- a/searx/engines/digg.py
+++ b/searx/engines/digg.py
@@ -13,7 +13,6 @@
from urllib import quote_plus
from json import loads
from lxml import html
-from cgi import escape
from dateutil import parser
# engine dependent config
@@ -56,7 +55,7 @@ def response(resp):
url = result.attrib.get('data-contenturl')
thumbnail = result.xpath('.//img')[0].attrib.get('src')
title = ''.join(result.xpath(title_xpath))
- content = escape(''.join(result.xpath(content_xpath)))
+ content = ''.join(result.xpath(content_xpath))
pubdate = result.xpath(pubdate_xpath)[0].attrib.get('datetime')
publishedDate = parser.parse(pubdate)