mirror of
https://github.com/searxng/searxng.git
synced 2025-08-27 13:56:57 +02:00
[mod] do not escape html content in engines
This commit is contained in:
parent
28f12ef5a0
commit
16bdc0baf4
30 changed files with 56 additions and 97 deletions
|
@ -9,7 +9,6 @@
|
|||
@parse url, title, content
|
||||
"""
|
||||
|
||||
from cgi import escape
|
||||
from urllib import urlencode
|
||||
from lxml import html
|
||||
from searx.search import logger
|
||||
|
@ -52,8 +51,8 @@ def response(resp):
|
|||
for result in dom.xpath(results_xpath):
|
||||
try:
|
||||
res = {'url': result.xpath(url_xpath)[0],
|
||||
'title': escape(''.join(result.xpath(title_xpath))),
|
||||
'content': escape(''.join(result.xpath(content_xpath)))}
|
||||
'title': ''.join(result.xpath(title_xpath)),
|
||||
'content': ''.join(result.xpath(content_xpath))}
|
||||
except:
|
||||
logger.exception('yandex parse crash')
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue