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.main
parent
2c9cf3ecc6
commit
d16ef6d011
|
@ -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 New Issue