//普通替换
function doRepNormal(s){
var str=s.replace(/p>br type="_moz">\s*?\/p>/ig,"");
str=str.replace(/p>\s*?br type="_moz">\s*?\/p>/ig, "");
str=str.replace(/p>(\s|\nbsp\;| | |\xc2\xa0)*?\/p>/ig, "");
str=str.replace(/p>\s*?\/p>/ig,"");
str=str.replace(/p>nbsp;\/p>/ig,"");
str=str.replace(/br type="_moz">\nnbsp;\/p>/ig, "/p>");
str=str.replace(/br type="_moz">\s*?\/p>/ig, "/p>");
str=str.replace(/br\s*?\/?>\s*?\/p>/ig, "/p>");
str=str.replace(/br \/>\nnbsp;\/p>/ig, "/p>");
str=str.replace(/br>\nnbsp;\/p>/ig, "/p>");
//表格替换
str=str.replace(/table[^>]*>/ig, "table>");
str=str.replace(/thead[^>]*>/ig, "thead>");
str=str.replace(/tbody[^>]*>/ig, "tbody>");
str=str.replace(/tfoot[^>]*>/ig, "tfoot>");
str=str.replace(/tr[^>]*>/ig, "tr>");
str=str.replace(/th [^>]*>/ig, "th>");
str=str.replace(/td[^>]*>/ig, "td>");
str=str.replace(/th>\s*?p>/ig, "th>");
str=str.replace(/\/p>\s*?\/th>/ig, "/th>");
str=str.replace(/td[^>]*>\s*?p>/ig, "td>");
str=str.replace(/td>\s*?p>/ig, "td>");
str=str.replace(/\/p>\s*?\/td>/ig, "/td>");
return str;
}