js去除html标记

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