[fix] engine stackexchange - decode HTML entities in title & content

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2021-09-29 08:08:18 +02:00 committed by Noémi Ványi
parent 0b3488158b
commit a1f9919587

View File

@ -6,6 +6,7 @@
"""
import html
from json import loads
from urllib.parse import urlencode
@ -57,8 +58,8 @@ def response(resp):
results.append({
'url': "https://%s.com/q/%s" % (api_site, result['question_id']),
'title': result['title'],
'content': content,
'title': html.unescape(result['title']),
'content': html.unescape(content),
})
return results