comparison config/initializers/ext_twitter_tweet.rb @ 172:df4be896ab8b

Improved escaping and truncating
author nanaya <me@nanaya.pro>
date Wed, 08 Aug 2018 20:37:29 +0900
parents
children d35dbc09bd83
comparison
equal deleted inserted replaced
171:90db232f39e7 172:df4be896ab8b
1 class Twitter::Tweet
2 def unescaped_text
3 CGI.unescapeHTML attrs[:full_text].printable
4 end
5
6 memoize :unescaped_text
7 end