您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

js清理Word格式示例代码_javascript技巧

2024/5/14 10:29:54发布33次查看
复制代码 代码如下:
cleanword = function(){
var editbody = fckeditorapi.getinstance(text).editordocument.body;
var html = fckeditorapi.getinstance(text).editordocument.body.innertext;
for(var intloop=0;intloopel=editbody.all[intloop];
el.removeattribute(classname,,0);
el.removeattribute(style,,0);
el.removeattribute(font, ,0);
}
html=html.replace(/ /g,);
html=html.replace(/o:/g,);
html=html.replace(//g,);
html=html.replace(//g,);
html=html.replace(//g,);
html=html.replace(//g,);
html=html.replace(//g,);
html=html.replace(//g,);
html=html.replace(//g,);
html=html.replace(//g,);
fckeditorapi.getinstance(text).editordocument.body.innertext=html;
}
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product