[Fix] Ascii code issue while downloading report (#5990)
This commit is contained in:
parent
67c9f94470
commit
a5d7182817
1 changed files with 2 additions and 0 deletions
|
|
@ -46,6 +46,8 @@ def make_xlsx(data, sheet_name, wb=None):
|
|||
|
||||
def handle_html(data):
|
||||
# return if no html tags found
|
||||
data = frappe.as_unicode(data)
|
||||
|
||||
if '<' not in data:
|
||||
return data
|
||||
if '>' not in data:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue