如何在Google表格/ Google-apps-script中将带格式的文本转换为HTML

问题描述 投票:-4回答:1

我想将Google表格中一列中的格式化文本转换为HMTL。

通过研究,我发现了以下解决方案,但其中不包括新行或项目符号点等。

Some formatting is converted but not all

B列中的屏幕快照HTML仅显示基本HTML,例如粗体和斜体,但显示新行和项目符号。

有人解决方案还是有人可以编辑代码以包含更多格式?

谢谢

https://docs.google.com/spreadsheets/d/1SDoi7w8u4eMl6WMzpg3zbUR0sExwaowyAqmi7o2LP4w/edit?usp=sharing

补充详细信息:How to convert formatted text to html tag in Google-apps-script?

html google-apps-script google-sheets type-conversion rich-text-editor
1个回答
0
投票

您打算做的将只使用您所使用的代码中的斜体,粗体,下划线和删除线,因为在这些方法中可以看到TextStyle Class支持的格式:

© www.soinside.com 2019 - 2024. All rights reserved.