消息通知的内容没有过滤用Tab键空格引起的特殊符号

This commit is contained in:
cxt 2016-05-20 11:12:37 +08:00
parent 3ebef0eae2
commit 6aa20c9edf
1 changed files with 1 additions and 0 deletions

View File

@ -3238,6 +3238,7 @@ def strip_html(text,len=0,endss="...")
ss = ""
if text.length>0
ss=text.gsub(/<\/?.*?>/, '').strip
ss = ss.gsub(/&nbsp;/, ' ')
if len > 0 && ss.length > len
ss = ss[0, len] + endss