mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 13:49:26 +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
|
@ -10,7 +10,6 @@
|
|||
@parse url, title, content
|
||||
"""
|
||||
|
||||
from cgi import escape
|
||||
from json import loads
|
||||
from urllib import urlencode, unquote
|
||||
import re
|
||||
|
@ -78,7 +77,7 @@ def response(resp):
|
|||
|
||||
# append result
|
||||
results.append({'url': result['SourceUrl'],
|
||||
'title': escape(result['Title']),
|
||||
'title': result['Title'],
|
||||
'content': '',
|
||||
'img_src': img_url,
|
||||
'template': 'images.html'})
|
||||
|
@ -90,8 +89,8 @@ def response(resp):
|
|||
|
||||
# append result
|
||||
results.append({'url': result_url,
|
||||
'title': escape(result_title),
|
||||
'content': escape(result_content)})
|
||||
'title': result_title,
|
||||
'content': result_content})
|
||||
|
||||
# parse images
|
||||
for result in json.get('Images', []):
|
||||
|
@ -100,7 +99,7 @@ def response(resp):
|
|||
|
||||
# append result
|
||||
results.append({'url': result['SourceUrl'],
|
||||
'title': escape(result['Title']),
|
||||
'title': result['Title'],
|
||||
'content': '',
|
||||
'img_src': img_url,
|
||||
'template': 'images.html'})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue