begin require "escape_utils" rescue LoadError => _ raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'escape_utils' for EmailReplyFilter. See README.md for details." end begin require "email_reply_parser" rescue LoadError => _ raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'email_reply_parser' for EmailReplyFilter. See README.md for details." end module HTML class Pipeline # HTML Filter that converts email reply text into an HTML DocumentFragment. # It must be used as the first filter in a pipeline. # # Context options: # None # # This filter does not write any additional information to the context hash. class EmailReplyFilter < TextFilter include EscapeUtils EMAIL_HIDDEN_HEADER = %(