阅读背景:

js过滤(去除)富文本编辑器中的html标签和换行回车等标记的正则表达式

来源:互联网 

一段这样的Html包裹的文字:

var description="<p>\n\t<img src=\"https://localhost/Scripts/KindEditor/Editor/plugins/emoticons/images/0.gif\" alt=\"\" border=\"0\" />ds<em>fds</em>\n</p>\n<p>\n\ts<span style=\"font-size:16px;\">dfd</span>sf<img src=\"https://localhost/Scripts/KindEditor/Editor/plugins/emoticons/images/19.gif\" alt=\"\" border=\"0\" />ds<strong>fdsfds</strong>\n</p>\n<p>\n\t<br />\n<strong></strong>\n</p>\n<p align=\"center\">\n\t<strong>d<span style=\"font-family:FangSong_GB2312;\">ssa</span>dasasdsad<u>dfds</u><br />\n</strong>\n</p>"var description="<p>\n\t<img




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: