我正在尝试从我的文本区域中删除 MSWord 格式信息,但不知道如何执行此操作。情况就像我需要将一些内容从 MSWord 复制粘贴到文本框编辑器中。它被复制得很好,但问题是所有格式也被复制,所以我的 300 个字符的句子扩展到 20000 个字符的格式化句子。有人可以建议我该怎么做吗?
好的,完成了一些研发工作,我已经达到了一定的阶段。
这是我从 Word 文档中复制的文本
Once the user clicks on the Cancel icon for a transaction on the Status of Business, and the transaction is eligible for cancellation, a new screen titled “Cancel Transaction” will appear, with the following fields:
这是我在 $("#textAreaId").val() 中得到的
"
Normal
0
false
false
false
EN-US
X-NONE
X-NONE
Once the user clicks on the Cancel icon for a
transaction on the Status of Business, and the transaction is eligible for
cancellation, a new screen titled “Cancel Transaction” will appear, with the
following fields:
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-style-parent:"";
line-height:115%;
font-:11.0pt;"Calibri","sans-serif";
mso-bidi-"Times New Roman";}
"