微信动态的描述过滤掉html
This commit is contained in:
parent
8fbe4d636c
commit
0cac1e99c7
|
@ -41,11 +41,11 @@ module Mobile
|
||||||
end
|
end
|
||||||
when :description
|
when :description
|
||||||
if ac.act_type == "HomeworkCommon" || ac.act_type == "Issue" || ac.act_type == "News"
|
if ac.act_type == "HomeworkCommon" || ac.act_type == "Issue" || ac.act_type == "News"
|
||||||
ac.act.description unless ac.nil? || ac.act.nil?
|
strip_html(ac.act.description) unless ac.nil? || ac.act.nil?
|
||||||
elsif ac.act_type == "Message" || ac.act_type == "BlogComment"
|
elsif ac.act_type == "Message" || ac.act_type == "BlogComment"
|
||||||
ac.act.content unless ac.nil? || ac.act.nil?
|
strip_html(ac.act.content) unless ac.nil? || ac.act.nil?
|
||||||
elsif ac.act_type == "JournalsForMessage"
|
elsif ac.act_type == "JournalsForMessage"
|
||||||
ac.act.notes unless ac.nil? || ac.act.nil?
|
strip_html(ac.act.notes) unless ac.nil? || ac.act.nil?
|
||||||
end
|
end
|
||||||
when :latest_update
|
when :latest_update
|
||||||
time_from_now ac.updated_at unless ac.nil?
|
time_from_now ac.updated_at unless ac.nil?
|
||||||
|
|
Loading…
Reference in New Issue