I am trying to remove MSWord formatting information from my text area but not getting idea how to do this. The situation is like I need to copy paste some content from MSWord into a textbox editor. It gets copied well but the issue is that all the formatting also gets copied and so my 300 character sentence expands to 20000 character formatted sentence. Can any one suggest me what to do?
Ok with some R&D done I have reached a certain stage.
Here's the text that I copied from Word document
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:
here's what I get in $("#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";}
"