使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
anoopmb
/
frappe
关注
1
点赞
0
派生
0
代码
工单
0
合并请求
0
版本发布
0
百科
动态
浏览代码
[minor] Handle string with no html tag in xlsxutils (
#3332
)
version-14
Faris Ansari
8 年前
committed by
Nabin Hait
父节点
0eb16baf82
当前提交
f16854559d
共有
1 个文件被更改
,包括
6 次插入
和
0 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+6
-0
frappe/utils/xlsxutils.py
+ 6
- 0
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()
撰写
预览
正在加载...
取消
保存