forked from Ponysearch/Ponysearch
[fix] engine stackexchange - decode HTML entities in title & content
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
5efe77bdf5
commit
ecb3912bd0
1 changed files with 3 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import html
|
||||||
from json import loads
|
from json import loads
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode
|
||||||
|
|
||||||
|
@ -57,8 +58,8 @@ def response(resp):
|
||||||
|
|
||||||
results.append({
|
results.append({
|
||||||
'url': "https://%s.com/q/%s" % (api_site, result['question_id']),
|
'url': "https://%s.com/q/%s" % (api_site, result['question_id']),
|
||||||
'title': result['title'],
|
'title': html.unescape(result['title']),
|
||||||
'content': content,
|
'content': html.unescape(content),
|
||||||
})
|
})
|
||||||
|
|
||||||
return results
|
return results
|
||||||
|
|
Loading…
Reference in a new issue