简体   繁体   English

消除<br>从制表符 xlsx 导出中的列标题

[英]Remove <br> from column headers in tabulator xlsx export

I am using Tabulator as frontend table framework in my browser.我在浏览器中使用Tabulator作为前端表格框架。 Some of my columns have long titles and are splitted by html line breaks ( <br> ).我的一些专栏标题很长,并由 html 换行符 ( <br> ) 分隔。

When I download the table data in Excel file format , my column headers (= first row in this spreadsheet export) contain those <br> as plain text, eg: Foo<br>bar .当我以 Excel 文件格式下载表格数据时,我的列标题(=此电子表格导出中的第一行)包含那些<br>作为纯文本,例如: Foo<br>bar

How can I remove these characters in my excel export?如何在我的 excel 导出中删除这些字符? Is this even possible?这甚至可能吗? Any ideas?有任何想法吗?

EDIT编辑

Here a screenshot from my Excel export for clarification:这是我的 Excel 导出的屏幕截图以供澄清: Excel 中的制表符列标题

You can specify the title you want to be substituted for in the download here Download Title as:您可以在此处的下载中指定要替换的标题 下载标题为:

columns: [
    { title: "Name", field: "name", titleDownload: "Full Name" } //change column title to "Full Name" in download
]

If you really want to customize things you build your own custom file formatter Custom Format .如果您真的想自定义内容,您可以构建自己的自定义文件格式化程序Custom Format

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM