view 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
line wrap: on
line source

class Twitter::Tweet
  def full_text_extended
    attrs[:full_text].printable
  end
  memoize :full_text_extended

  def unescaped_text
    CGI.unescapeHTML full_text_extended
  end
  memoize :unescaped_text
end