Mercurial > rsstweet
comparison config/initializers/ext_twitter_tweet.rb @ 174:d35dbc09bd83
Less double escaping for actual content
Ends up rather confusing.
author | nanaya <me@nanaya.pro> |
---|---|
date | Thu, 09 Aug 2018 19:31:22 +0900 |
parents | df4be896ab8b |
children |
comparison
equal
deleted
inserted
replaced
173:aa78d1eeb6e5 | 174:d35dbc09bd83 |
---|---|
1 class Twitter::Tweet | 1 class Twitter::Tweet |
2 def full_text_extended | |
3 attrs[:full_text].printable | |
4 end | |
5 memoize :full_text_extended | |
6 | |
2 def unescaped_text | 7 def unescaped_text |
3 CGI.unescapeHTML attrs[:full_text].printable | 8 CGI.unescapeHTML full_text_extended |
4 end | 9 end |
5 | |
6 memoize :unescaped_text | 10 memoize :unescaped_text |
7 end | 11 end |