iceBreak
Code Change Word
msg = msg.replace(/<\/?[^>]*>/g, ''); //去除HTML Tag
msg = msg.replace(/[|]*\n/, '') //去除行尾空格
msg = msg.replace(/&nbsp;/ig, ''); //去掉npsp
msg = msg.replace(/<(?!\/?br\/?.+?>)[^<>]*>/g, ''); //去除HTML Tag,但不去除换行标签<br>
msg = msg.replace(/<\/?((?!img).)*?\/?>/g, ''); //去除HTML Tag,但不去除换行标签<img>(<img />)
posted on 2020-06-03 17:23  iceBreak  阅读(522)  评论(0)    收藏  举报

your browser does not support the video tag