[minor] Handle string with no html tag in xlsxutils (#3332)

This commit is contained in:
Faris Ansari 2017-05-18 13:39:07 +05:30 committed by Nabin Hait
parent 0eb16baf82
commit f16854559d

View file

@ -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()