lib/tw/app/render.rb in tw-0.2.1 vs lib/tw/app/render.rb in tw-0.2.2
- old
+ new
@@ -11,10 +11,10 @@
arr = [arr] unless arr.kind_of? Array
arr.flatten.sort{|a,b|
a[:id] <=> b[:id]
}.uniq.each{|m|
user = m[:user].kind_of?(Hash) ? "@#{m[:user][:from]} > @#{m[:user][:to]}" : "@#{m[:user]}"
- line = "#{m[:time].strftime '[%m/%d %a] (%H:%M:%S)'} #{user} : #{m[:text]}"
+ line = "#{m[:time].strftime '[%m/%d %a] (%H:%M:%S)'} #{user} : #{CGI.unescapeHTML m[:text]}"
puts line.colorize(/@[a-zA-Z0-9_]+/)
}
end
end
end