mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-03-11 08:54:34 +00:00
Unescape search response before rendering template
Fixes a small issue with the previous commit where bolded search terms had the <b> tags escaped, rather than being applied as actual html.
This commit is contained in:
parent
2c9cf3ecc6
commit
d16ef6d011
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import argparse
|
||||
import base64
|
||||
import html
|
||||
import io
|
||||
import json
|
||||
import pickle
|
||||
|
|
@ -273,7 +274,7 @@ def search():
|
|||
is_translation=any(
|
||||
_ in query.lower() for _ in [translation['translate'], 'translate']
|
||||
) and not search_util.search_type, # Standard search queries only
|
||||
response=response,
|
||||
response=html.unescape(str(response)),
|
||||
version_number=app.config['VERSION_NUMBER'],
|
||||
search_header=(render_template(
|
||||
'header.html',
|
||||
|
|
|
|||
Loading…
Reference in a new issue