如何清除word,excel粘贴的样式?请高手指教
我想把word,excel等内容贴到输入框里,但,无法清除其多余的样式,导致提交时出现[Microsoft][ODBC SQL Server Driver][SQL Server]第 1 行: 'Times' 附近有语法错误。
提交的从word粘贴的内容如下:
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 32pt; LINE-HEIGHT: 28pt; mso-line-height-rule: exactly; mso-char-indent-count: 2.0; mso-char-indent-size: 16.0pt"><SPAN style="FONT-SIZE: 16pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">几方面的。</SPAN><SPAN lang=EN-US style="FONT-SIZE: 16pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 28pt; mso-line-height-rule: exactly"><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 16pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"></SPAN></B><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="FONT-SIZE: 16pt"><o:p></o:p></SPAN></B> </P>
<P> </P>
请高手指教,谢谢!