JS将XML转换成普通文本
/*转换XML*/
function ConvertXML(str) {
var newStr = str.replace(/</g, '<');
newStr = newStr.replace(/>/g, '>');
return newStr;
}
posted on 2012-09-11 18:56 HelloHongfu 阅读(334) 评论(0) 收藏 举报
/*转换XML*/
function ConvertXML(str) {
var newStr = str.replace(/</g, '<');
newStr = newStr.replace(/>/g, '>');
return newStr;
}
posted on 2012-09-11 18:56 HelloHongfu 阅读(334) 评论(0) 收藏 举报