[英]Rich text content to excel export
I have a rich text content to database我有一个富文本内容到数据库
<p>
<strong>Hi This </strong><span style="text-decoration: underline;">is a sample
</span>
example
<span style="text-decoration: underline;"> on how thing will be working</span>
<span style="text-decoration: line-through;">from here</span>
<span style="text-decoration: underline;">on in the new project</span>
</p>
After fetching it from database, how to export to excel so that the output looks like从数据库中获取后,如何导出到excel,使输出看起来像
Hi This is a sample example on how thing will be working from here on in the new project嗨,这是一个示例示例,说明从现在开始在新项目中的工作方式
Open your .rtf
file with notepad.用记事本打开.rtf
文件。
Replace all <p>
with nothing将所有<p>
替换为空
Replace all </p>
with ;
将所有</p>
替换为;
Save as .csv
另存为.csv
Open in excel用excel打开
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.