我正在将JIRA中的数据导入Google文档。其中一个字段是描述,它基本上是HTML文本。使用Google应用程序脚本将HTML表导入Google文档
有什么方法可以在Google Doc上“添加”这个HTML文本吗?或者我真的不得不手动解析它并创建段落,表格等?
的HTML可能看起来如下:
<p>Hello There</p>
<table class='confluenceTable'>
<tbody>
<tr>
<th class='confluenceTh'> Name </th>
<th class='confluenceTh'> Hours </th>
<th class='confluenceTh'> Cost </th>
</tr>
<tr>
<td class='confluenceTd'> Some Person</td>
<td class='confluenceTd'> 1 </td>
<td class='confluenceTd'> CHF 1</td>
</tr>
</tbody>
</table>
你再追加'body'到现有的谷歌文档或创建一个新的? –
或'html'是否被附加到doc中的'fetch' url? –