diff --git a/frappe/utils/xlsxutils.py b/frappe/utils/xlsxutils.py index bf43219608..2915bad06f 100644 --- a/frappe/utils/xlsxutils.py +++ b/frappe/utils/xlsxutils.py @@ -37,6 +37,12 @@ def make_xlsx(data, sheet_name): def handle_html(data): + # return if no html tags found + if '<' not in data: + return data + if '>' not in data: + return data + from html2text import unescape, HTML2Text h = HTML2Text()