将html片段的文本内容取出来
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(/[\r\n]/g, "");
resultStr = resultStr.replace(/“/g, "").substring(0, 300);