1. var value=`xxxxxxx` //html片段
2. var resultStr= value.replace(/</?.+?/?>/g, "");
resultStr = resultStr.replace(/ /g, "");
resultStr = resultStr.replace(/s+/g, "");
resultStr = resultStr.replace(/</g, "");
resultStr = resultStr.replace(/>/g, "");
resultStr = resultStr.replace(/”/g, "");
resultStr = resultStr.replace(/</?.+?>/g, "");
resultStr = resultStr.replace(/[
]/g, "");
resultStr = resultStr.replace(/“/g, "").substring(0, 300);