1.去除html标签
reltStr = str.replace(/<[^>]+>/g, "");
2.去除掉收尾空格
reltStr = str.replace(/(^\s*)|(\s*$)/g, "");
3.去掉 
reltStr = strreplace(/[ ]|[ ]/g, '');
其余:
校验汉字表达式:
^[\u4e00-\u9fa5]{0,}$
1.去除html标签
reltStr = str.replace(/<[^>]+>/g, "");
2.去除掉收尾空格
reltStr = str.replace(/(^\s*)|(\s*$)/g, "");
3.去掉 
reltStr = strreplace(/[ ]|[ ]/g, '');
其余:
校验汉字表达式:
^[\u4e00-\u9fa5]{0,}$