/ 清除WORD冗余格式并粘贴 function cleanAndPaste( html ) {  // Remove all SPAN tags  html = html.replace(/<\/?SPAN[^]*/gi, "" );  // Remove Class attributes  html = html.replace(/<(\w[^]*) class=([^ |]*)([^]*)/gi, "<$1$3") ;  // Remove Style attributes  html = html.replace(/<(\w[^]*) style="([^"]*)"([^]*)/gi, "<$1$3") ;  // Remov...
[ 查看全文 ]