jquery妙招去除html标记
$('<p>'+data+'</p>').text()
//测试 var data = '<div>sdfdfwere<sdf><dfd>sfdsf</div>'; alert($('<p>'+data+'</p>').text());
$('<p>'+data+'</p>').text()
//测试 var data = '<div>sdfdfwere<sdf><dfd>sfdsf</div>'; alert($('<p>'+data+'</p>').text());