module ReplyParser
Constants
- VERSION
Public Class Methods
remove_reply(text)
click to toggle source
# File lib/reply_parser.rb, line 13 def self.remove_reply(text) result = case text when /(.+)On .+ wrote:$/m $1 when /(.+)^.* Reply ABOVE THIS LINE/m $1 else text end result.strip end
sanitize(html)
click to toggle source
# File lib/reply_parser.rb, line 9 def self.sanitize(html) remove_reply HTML::FullSanitizer.new.sanitize(html) end