function removeHmtlTag(str){ return str.replace(/<[^>]+>/g, "");//去掉所有的html标记 } 转载于:https://www.cnblogs.com/NigelShi/p/4955622.html