消息通知的内容没有过滤用Tab键空格引起的特殊符号
This commit is contained in:
parent
3ebef0eae2
commit
6aa20c9edf
|
@ -3238,6 +3238,7 @@ def strip_html(text,len=0,endss="...")
|
|||
ss = ""
|
||||
if text.length>0
|
||||
ss=text.gsub(/<\/?.*?>/, '').strip
|
||||
ss = ss.gsub(/ /, ' ')
|
||||
|
||||
if len > 0 && ss.length > len
|
||||
ss = ss[0, len] + endss
|
||||
|
|
Loading…
Reference in New Issue